##// END OF EJS Templates
docs: updated nginx tunning section with modification allowing custom https port to work....
marcink -
r2429:2873b2f0 default
parent child Browse files
Show More
@@ -1,33 +1,33 b''
1 1 .. _nginx-tuning:
2 2
3 3 Nginx Tuning
4 4 ------------
5 5
6 6 Set the following properties in your ``/etc/nginx/proxy.conf`` so it does not
7 7 timeout during large pushes.
8 8
9 9 .. code-block:: nginx
10 10
11 11 proxy_redirect off;
12 proxy_set_header Host $host;
12 proxy_set_header Host $http_host;
13 13
14 14 ## needed for container auth
15 15 # proxy_set_header REMOTE_USER $remote_user;
16 16 # proxy_set_header X-Forwarded-User $remote_user;
17 17
18 18 proxy_set_header X-Url-Scheme $scheme;
19 19 proxy_set_header X-Host $http_host;
20 20 proxy_set_header X-Real-IP $remote_addr;
21 21 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
22 22 proxy_set_header Proxy-host $proxy_host;
23 23 proxy_buffering off;
24 24 proxy_connect_timeout 7200;
25 25 proxy_send_timeout 7200;
26 26 proxy_read_timeout 7200;
27 27 proxy_buffers 8 32k;
28 28 # Set this to a larger number if you experience timeouts
29 29 client_max_body_size 1024m;
30 30 client_body_buffer_size 128k;
31 31 large_client_header_buffers 8 64k;
32 32 add_header X-Frame-Options SAMEORIGIN;
33 33 add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
General Comments 0
You need to be logged in to leave comments. Login now