proxy_redirect off proxy_set_header Host host proxy_set_header X-Real-

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Remote-User $remote_user;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header REMOTE_USER $remote_user;
proxy_set_header HTTP_COOKIE $http_cookie;
proxy_set_header REQUEST_METHOD $request_method;
proxy_set_header SERVER_PORT $server_port;
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;