로그인 영역

통합 검색
통합 검색

젠투 공식 홈페이지
젠투 공식 한글 번역 문서
부 메뉴
  1. 질문/답변
  2. Tips
  3. 위키(새 창)
  4. 뉴스/새소식
컨텐츠 영역

redmine & thin 설정 조금.

2013.03.18 19:41

송효진 조회 수:10269

/etc/thin/redmine.yml


pid: /var/run/thin/redmine.pid

user: redmine

group: nginx

wait: 30

timeout: 30

log: /var/log/redmine.log

max_conns: 1024

require: []


environment: production

max_persistent_conns: 512

servers: 4

daemonize: true

socket: /var/run/thin/redmine.socket

chdir: /home/redmine





vi /etc/init.d/thin


action()  의 chkconfig 아래줄에

checkpath -d -m 0777 -o root:root /var/run/thin

추가


/etc/init.d/thin start 하면 /etc/thin/*.yml 을 모두 실행시킴.


ln -s thin thin.redmine

/etc/init.d/thin.redmine start 하면 redmine 만 실행됨.




nginx 연동은 unix socket 으로


# Upstream Ruby process cluster for load balancing

upstream redmine_cluster {

    server unix:/var/run/thin/redmine.0.socket;

    server unix:/var/run/thin/redmine.1.socket;

    server unix:/var/run/thin/redmine.2.socket;

    server unix:/var/run/thin/redmine.3.socket;

}


server {

    listen       80;

    server_name  redmine.asdf.com;


    include /etc/nginx/vhosts.d/modules.d/40_proxy.conf;

    root /home/redmine/public;

    proxy_redirect off;


    location / {

        try_files $uri/index.html $uri.html $uri @cluster;

    }


    location @cluster {

        proxy_pass http://redmine_cluster;

    }

}



40_proxy.conf


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       10m;

client_body_buffer_size    128k;


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;




로그인 등에 ssl 적용은

http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Nginx_to_run_Redmine