プロジェクト

全般

プロフィール

RedmineをCentOS 6上で動かすーUnicornとNginx編 » redmine.conf

NginxのRedmine unicorn設定 - 高橋 徹, 2014/06/30 00:37

 
upstream unicorn-redmine {
server unix:/tmp/unicorn_redmine.sock;
}

server {
listen 80;
server_name nostrum;

root /var/lib/redmine/public;
client_max_body_size 1G;

location / {
try_files $uri/index.html $uri.html $uri @app;
}

location @app {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_connect_timeout 60;
proxy_read_timeout 60;
proxy_send_timeout 600;
proxy_pass http://unicorn-redmine;
}
error_page 500 502 503 504 /500.html;
}
(3-3/5)