Created
September 19, 2013 15:01
-
-
Save halidaltuner/6624808 to your computer and use it in GitHub Desktop.
unicorn conf for nginx
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 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