-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
I have sharry set up behind nginx proxy (nginx proxy manager), when downloading large files (>3GB) on browser after around 50-60 MB, the download fails with network error. This is my config on nginx.
include /snippets/authelia-location.conf;
location / {
include /snippets/proxy-share.conf;
include /snippets/authelia-authrequest.conf;
proxy_pass $forward_scheme://$server:$port;
}
contents of the proxy-share.conf
## Headers
proxy_set_header Host $host;
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-URI $request_uri;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
## WebSocket Example
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
## Range Header
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
## Basic Proxy Configuration
client_body_buffer_size 128k;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503; ## Timeout if the real server is dead.
proxy_redirect http:// $scheme://;
proxy_http_version 1.1;
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffering off;
## Trusted Proxies Configuration
## Please read the following documentation before configuring this:
## https://www.authelia.com/integration/proxies/nginx/#trusted-proxies
# set_real_ip_from 10.0.0.0/8;
# set_real_ip_from 172.16.0.0/12;
# set_real_ip_from 192.168.0.0/16;
# set_real_ip_from fc00::/7;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
## Advanced Proxy Configuration
proxy_connect_timeout 5m;
client_max_body_size 105M;
proxy_send_timeout 5m;
proxy_read_timeout 5m;
send_timeout 5m;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels