Project

General

Profile

How To: Redmine+ngnix+thin

Added by Роман Лебедев over 9 years ago

Good evening
Help please configure redmine + ngnix + thin.
What I did:
1. Install and configure redmine in conjunction with apache + passenger. This to work, but I do not like speed. Solved all set to ng nix + Thein.
2. Install nginx, set it up and test it by running phpmyadmin. Everything works.
3. Run gem install thin. Received an answer something like:

Successfully
unable to convert "\ xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-A
SCII for CHANGELOG, skipping
1 gem installed

4. Add a line to ngnix.conf, this content:

upstream thin_cluster {
server unix:/tmp/thin.0.sock;
}
server {
listen 80;
server_name mysite.ru;
access_log /var/log/nginx/redmine-proxy-access;
error_log /var/log/nginx/redmine-proxy-error;

charset utf-8;
root /disk2/www/redmine/public;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

client_max_body_size 50m;
client_body_buffer_size 10m;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;

proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;

location / {
try_files $uri/index.html $uri.html $uri @cluster;
}
location @cluster {
proxy_pass http://thin_cluster;
}
}

5. Create a directory and file /etc/thin/redmine.yml with the contents:
pid: tmp/pids/thin.pid
group: redmine
wait: 30
timeout: 30
log: log/thin.log
max_conns: 1024
require: []
environment: production
max_persistent_conns: 512
servers: 1
daemonize: true
user: redmine
socket: /tmp/thin.sock
chdir: /disk2/www/redmine

6. What to do next, I Do not Know. Tried to start to go at your own site, but nothing works. Tell me what I did or what I'm doing wrong.
Here is the information that is displayed in response to the command script/about:
darcs: not found
hg: not found
cvs: not found
bzr: not found
git: not found
Environment:
Redmine version 2.6.0.stable.13591
Ruby version 2.0.0-p576 (2014-09-19) [i386-freebsd10]
Rails version 3.2.20
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Filesystem
Redmine plugins:
redmine_agile 1.3.5
redmine_better_gantt_chart 0.9.0
redmine_checklists 3.0.1
redmine_dmsf 1.4.9 stable
redmine_people 0.1.8


Replies (1)

RE: How To: Redmine+ngnix+thin - Added by Pavel Potcheptsov over 9 years ago

I think you should start Thin from cli or as a daemon.

    (1-1/1)