Skip to content

Instantly share code, notes, and snippets.

@jmkim
Last active January 18, 2023 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmkim/eff9045c02048b674a6f6978d51aa23b to your computer and use it in GitHub Desktop.
Save jmkim/eff9045c02048b674a6f6978d51aa23b to your computer and use it in GitHub Desktop.
Infinity upload · download configuration for Nginx
location /nas/ {
rewrite ^/nas(.*) /$1 break;
proxy_pass http://$HOST:$PORT;
proxy_buffering off;
proxy_request_buffering off;
proxy_max_temp_file_size 0;
client_max_body_size 10000G;
client_body_timeout 365d;
proxy_read_timeout 365d;
proxy_connect_timeout 365d;
proxy_send_timeout 365d;
send_timeout 365d;
access_log /var/log/nginx/nas/access.log;
error_log /var/log/nginx/nas/error.log error;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment