Project

General

Profile

Using nginx + thin giving Invalid form authenticity token... » proxy.inc.conf

nginx include file - proxy options - Deoren Moor, 2010-11-12 04:52

 
1
# http://www.redmine.org/wiki/redmine/HowTo_configure_Nginx_to_run_Redmine
2

    
3
# Apache is using mod_rpaf so it's logs will have the real ip
4
proxy_set_header   Host             $host;
5
proxy_set_header   X-Real-IP        $remote_addr;
6
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
7

    
8
# Not sure if this will break anything else, but it was added for Redmine
9
proxy_set_header   X-Forwarded-Proto $scheme;
10

    
11
client_max_body_size       10m;
12
client_body_buffer_size    128k;
13
proxy_connect_timeout      90;
14
proxy_send_timeout         90;
15
proxy_read_timeout         90;
16
proxy_buffer_size          4k;
17
proxy_buffers              4 32k;
18
proxy_busy_buffers_size    64k;
19
proxy_temp_file_write_size 64k;
(3-3/5)