Created
October 21, 2015 14:13
-
-
Save fedesilva/94d04bb0dee4f0109f3f to your computer and use it in GitHub Desktop.
nginx configs
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 app { | |
server localhost:9000; | |
} | |
server { | |
listen 80; | |
server_name leases.counselytics.net; | |
# Application root | |
root /opt/csl/lease-agreements/la-app/public; | |
try_files $uri/index.html $uri @app; | |
location @app { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_pass http://app; | |
} | |
error_page 500 502 503 504 /500.html; | |
client_max_body_size 4G; | |
keepalive_timeout 10; | |
} |
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 lpaAnalyzer { | |
server localhost:8080; | |
keepalive 15; | |
} | |
server { | |
listen 80; | |
location @app { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_pass http://lpaAnalyzer; | |
} | |
client_max_body_size 10M; | |
keepalive_timeout 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment