Created
March 5, 2020 05:26
-
-
Save yuikns/7492012ecaf469a9a544da38855391e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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