Last active
July 2, 2018 10:46
-
-
Save anoobbava/5d8bb925578412b3b3f1e500a68010e5 to your computer and use it in GitHub Desktop.
sites enabled configuration for deploying the blog_app >> for blogging purpose , dont delete this file
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 { | |
# Path to Unicorn SOCK file, as defined previously | |
server unix:/home/anoob.bava/blog_app/shared/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
root /home/anoob.bava/blog_app/current/public; | |
server_name 35.231.73.143; | |
try_files $uri/index.html $uri @app; | |
access_log /var/log/nginx/access.log combined; | |
error_log /var/log/nginx/error.log; | |
location @app{ | |
proxy_set_header X-Forwarded-For $remote_addr; | |
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment