Created
August 7, 2017 20:13
-
-
Save jeffersonsouza/7f689bd98c757a89e953f2aa6d8c682f 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
upstream default { | |
server server1; | |
server server2; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_connect_timeout 7200; | |
proxy_send_timeout 7200; | |
proxy_read_timeout 7200; | |
send_timeout 7200; | |
client_max_body_size 1000M; | |
proxy_pass http://default; | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root /usr/share/nginx/html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment