Created
September 30, 2014 18:55
-
-
Save jcinis/d04e8930ed61c23a32cb 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 _; | |
access_log /var/log/nginx/proxy.access.log; | |
underscores_in_headers on; | |
# your standard Nginx config for your site here... | |
location / { | |
proxy_set_header Host $host; | |
proxy_redirect off; | |
client_max_body_size 10m; | |
client_body_buffer_size 128k; | |
proxy_connect_timeout 90; | |
proxy_send_timeout 180s; | |
proxy_read_timeout 180s; | |
proxy_buffer_size 64k; # If set to a smaller value, | |
# nginx can complain with an | |
# "too large headers" error | |
proxy_buffers 4 64k; | |
proxy_busy_buffers_size 64k; | |
proxy_temp_file_write_size 64k; | |
resolver 169.254.169.253; set $backend_upstream "http://VPC-WebLoadBalancer-1933670234.us-east-1.elb.amazonaws.com"; | |
proxy_pass $backend_upstream; | |
} | |
location /router2/tracker/ { | |
proxy_set_header Host $host; | |
proxy_redirect off; | |
client_max_body_size 10m; | |
client_body_buffer_size 128k; | |
proxy_connect_timeout 90; | |
proxy_send_timeout 180s; | |
proxy_read_timeout 180s; | |
proxy_buffer_size 64k; # If set to a smaller value, | |
# nginx can complain with an | |
# "too large headers" error | |
proxy_buffers 4 64k; | |
proxy_busy_buffers_size 64k; | |
proxy_temp_file_write_size 64k; | |
resolver 169.254.169.253; set $backend_upstream "http://Production-TrackerELB-2115363262.us-east-1.elb.amazonaws.com" | |
proxy_pass $backend_upstream; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment