Get Nextcloud working (I hope)
This commit is contained in:
@@ -59,14 +59,17 @@ services:
|
||||
- nginx
|
||||
|
||||
nextcloud:
|
||||
profiles: ["prod"]
|
||||
profiles: ["prod", "dev"]
|
||||
<<: *logging
|
||||
build: ./nextcloud
|
||||
image: nextcloud:31-fpm-alpine
|
||||
restart: unless-stopped
|
||||
user: 1000:1000
|
||||
ports:
|
||||
- 9000:9000
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
- ./nextcloud/redis-session.ini:/usr/local/etc/php/conf.d/redis-session.ini
|
||||
- /mnt/tower/stardust:/var/www/html/data
|
||||
- /mnt/tower/foundry:/var/www/foundry
|
||||
environment:
|
||||
@@ -205,6 +208,7 @@ services:
|
||||
- JWT_REFRESH_SECRET=${LIBRECHAT_JWT_REFRESH_SECRET}
|
||||
- AIHUBMIX_KEY=${AIHUBMIX_KEY}
|
||||
- OPENROUTER_KEY=${OPENROUTER_KEY}
|
||||
- IMAGE_GEN_OAI_BASEURL=https://aihubmix.com/v1
|
||||
- IMAGE_GEN_OAI_API_KEY=${AIHUBMIX_KEY}
|
||||
- IMAGE_GEN_OAI_MODEL=gpt-image-1
|
||||
- JINA_API_KEY=${JINA_API_KEY}
|
||||
|
||||
5
nextcloud/redis-session.ini
Normal file
5
nextcloud/redis-session.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
session.save_handler = redis
|
||||
session.save_path = "tcp://redis:6379"
|
||||
redis.session.locking_enabled = 1
|
||||
redis.session.lock_retries = -1
|
||||
redis.session.lock_wait_time = 10000
|
||||
@@ -48,13 +48,13 @@ location ~ \.php(?:$|/) {
|
||||
try_files $fastcgi_script_name =404;
|
||||
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
fastcgi_param HTTPS on;
|
||||
|
||||
fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice
|
||||
fastcgi_param front_controller_active true; # Enable pretty urls
|
||||
fastcgi_pass http://$server_name;
|
||||
fastcgi_pass $server_name;
|
||||
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_request_buffering off;
|
||||
@@ -66,7 +66,8 @@ location ~ \.php(?:$|/) {
|
||||
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {
|
||||
try_files $uri /index.php$request_uri;
|
||||
# HTTP response headers borrowed from Nextcloud `.htaccess`
|
||||
add_header Cache-Control "public, max-age=15778463$asset_immutable";
|
||||
add_header Cache-Control "public, max-age=15778463";
|
||||
# add_header Cache-Control "public, max-age=15778463$asset_immutable";
|
||||
add_header Referrer-Policy "no-referrer" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
@@ -88,6 +89,7 @@ location /remote {
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$request_uri;
|
||||
rewrite ^ /index.php;
|
||||
# try_files $uri $uri/ /index.php$request_uri;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user