Skip to content

Instantly share code, notes, and snippets.

@halidaltuner
Created September 19, 2013 15:01
Show Gist options
  • Save halidaltuner/6624808 to your computer and use it in GitHub Desktop.
Save halidaltuner/6624808 to your computer and use it in GitHub Desktop.
unicorn conf for nginx
upstream redmine_stack {
server unix:/usr/local/share/redmine/tmp/pids/unicorn.sock fail_timeout=0;
}
server {
client_max_body_size 100M;
server_name alanadi.com;
keepalive_timeout 5;
root /usr/local/share/redmine/public;
try_files $uri/index.html $uri.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://redmine_stack;
}
error_page 500 502 503 504 /500.html;
location = /500.html {
root /usr/local/share/redmine/public;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment