Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
listen 80;
# server_name brainhealth.sunlab.org;
location / {
# proxy_pass http://127.0.0.1:8000;
proxy_pass http://127.0.0.1:58000;
proxy_read_timeout 300; # Some requests take more than 30 seconds.
proxy_connect_timeout 300; # Some requests take more than 30 seconds.
proxy_redirect off;
#proxy_buffering off;
proxy_buffering on;
proxy_buffer_size 64k;
proxy_buffers 32 16k;
proxy_busy_buffers_size 128k;
proxy_max_temp_file_size 4096m;
proxy_temp_file_write_size 128k;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment