##// 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 .. _nginx-tuning:
1 .. _nginx-tuning:
2
2
3 Nginx Tuning
3 Nginx Tuning
4 ------------
4 ------------
5
5
6 Set the following properties in your ``/etc/nginx/proxy.conf`` so it does not
6 Set the following properties in your ``/etc/nginx/proxy.conf`` so it does not
7 timeout during large pushes.
7 timeout during large pushes.
8
8
9 .. code-block:: nginx
9 .. code-block:: nginx
10
10
11 proxy_redirect off;
11 proxy_redirect off;
12 proxy_set_header Host $host;
12 proxy_set_header Host $http_host;
13
13
14 ## needed for container auth
14 ## needed for container auth
15 # proxy_set_header REMOTE_USER $remote_user;
15 # proxy_set_header REMOTE_USER $remote_user;
16 # proxy_set_header X-Forwarded-User $remote_user;
16 # proxy_set_header X-Forwarded-User $remote_user;
17
17
18 proxy_set_header X-Url-Scheme $scheme;
18 proxy_set_header X-Url-Scheme $scheme;
19 proxy_set_header X-Host $http_host;
19 proxy_set_header X-Host $http_host;
20 proxy_set_header X-Real-IP $remote_addr;
20 proxy_set_header X-Real-IP $remote_addr;
21 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
21 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
22 proxy_set_header Proxy-host $proxy_host;
22 proxy_set_header Proxy-host $proxy_host;
23 proxy_buffering off;
23 proxy_buffering off;
24 proxy_connect_timeout 7200;
24 proxy_connect_timeout 7200;
25 proxy_send_timeout 7200;
25 proxy_send_timeout 7200;
26 proxy_read_timeout 7200;
26 proxy_read_timeout 7200;
27 proxy_buffers 8 32k;
27 proxy_buffers 8 32k;
28 # Set this to a larger number if you experience timeouts
28 # Set this to a larger number if you experience timeouts
29 client_max_body_size 1024m;
29 client_max_body_size 1024m;
30 client_body_buffer_size 128k;
30 client_body_buffer_size 128k;
31 large_client_header_buffers 8 64k;
31 large_client_header_buffers 8 64k;
32 add_header X-Frame-Options SAMEORIGIN;
32 add_header X-Frame-Options SAMEORIGIN;
33 add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
33 add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
General Comments 0
You need to be logged in to leave comments. Login now