FAQ

Page Discussion Edit History

Redmine

[edit] Redmine

Redmine is seemingly complex. It is. However, when it comes to Nginx, it isn't.

[edit] Config

This is very nearly a drop in configuration. The only thing you should need to change will be the root location, upstream servers, and the server name.

upstream redmine {
        server 127.0.0.1:8000;
        server 127.0.0.1:8001;
        server 127.0.0.1:8002;
}
 
server {
        server_name redmine.DOMAIN.TLD;
        root /var/www/redmine;
 
        location / {
                try_files $uri @ruby;
        }
 
        location @ruby {
                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_redirect off;
                proxy_read_timeout 300;
                proxy_pass http://redmine;
        }
}

[edit] Ruby

In the above configuration I used upstream connections to ruby processes. They were bound to ports 8000-8002. Explaining how to set this up is explained on the redmine website and is probably best left for there. If there's enough request I'll try to compile something.