fix(fileserver): download interruptions

This commit is contained in:
ange 2024-02-28 18:18:18 +01:00
parent a59b38b2da
commit 7333b7c64e
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
3 changed files with 8 additions and 5 deletions

View File

@ -6,7 +6,7 @@ services:
- BASE_URL - BASE_URL
- EMAIL - EMAIL
volumes: volumes:
- ./nginx.conf:/web/sonarr.conf - ./nginx.conf:/web/fileserver.conf
- sites:/sites/ - sites:/sites/
- certs:/etc/letsencrypt/ - certs:/etc/letsencrypt/
- certbotroot:/var/www/certbot/ - certbotroot:/var/www/certbot/

View File

@ -2,11 +2,12 @@ server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
root /files;
autoindex on; autoindex on;
autoindex_exact_size off; autoindex_exact_size off;
autoindex_localtime on; autoindex_localtime on;
location / { sendfile on;
root /files; tcp_nopush on;
}
} }

View File

@ -17,6 +17,8 @@ server {
ssl_certificate_key /etc/letsencrypt/live/$BASE_URL/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/$BASE_URL/privkey.pem;
location / { location / {
grpc_pass http://fileserver; proxy_pass http://fileserver;
proxy_max_temp_file_size 0;
} }
} }