Is it a good idea to run Redmine using Webrick through Nginx?

Posted by Rohit on Server Fault See other posts from Server Fault or by Rohit
Published on 2012-07-07T12:54:01Z Indexed on 2012/07/07 15:17 UTC
Read the original article Hit count: 430

Filed under:
|

The task here is to get Redmine setup for a small (<20) team. There may be a few users who would access the setup as business clients. I am familiar with setting up PHP for Apache, and recently, Nginx. I am not familiar with Ruby, Ruby-On-Rails, etc. I prefer to use the OS's (Ubuntu Linux LTS) package manager to install the different components as it takes care of dependencies and updates.

I have setup Nginx with PHP-FPM successfully and am struggling with Redmine.

As suggested here, I got Redmine running on port 3000.

# /etc/init/redmine.conf
# Redmine

description "Redmine" 

start on runlevel [2345]
stop on runlevel [!2345]

expect daemon
exec ruby /usr/share/redmine/script/server webrick -e production -b 0.0.0.0 -d

And using the Nginx config on this page, I used Nginx to proxy requests to Webrick.

server {
    listen       80;
    server_name  myredmine.example.com;

    location / {
        proxy_pass http://127.0.0.1:3000;

    }
}

This works well locally. I wanted some opinions before trying this out on the live box (a 256 MB VPS).

Further, should I use something like monit to monitor webrick for failure?

© Server Fault or respective owner

Related posts about nginx

Related posts about redmine