Skip to content

Instantly share code, notes, and snippets.

@anoobbava
Last active July 2, 2018 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoobbava/5d8bb925578412b3b3f1e500a68010e5 to your computer and use it in GitHub Desktop.
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
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