|
1 |
| -## Version 2020/09/01 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/proxy.conf |
| 1 | +## Version 2020/10/04 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/proxy.conf |
2 | 2 |
|
3 |
| -client_body_buffer_size 128k; |
4 |
| - |
5 |
| -#Timeout if the real server is dead |
| 3 | +# Timeout if the real server is dead |
6 | 4 | proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
|
7 | 5 |
|
8 |
| -# Advanced Proxy Config |
9 |
| -send_timeout 5m; |
| 6 | +# Proxy Connection Settings |
| 7 | +proxy_buffers 32 4k; |
| 8 | +proxy_connect_timeout 240; |
| 9 | +proxy_headers_hash_bucket_size 128; |
| 10 | +proxy_headers_hash_max_size 1024; |
| 11 | +proxy_http_version 1.1; |
10 | 12 | proxy_read_timeout 240;
|
| 13 | +proxy_redirect http:// $scheme://; |
11 | 14 | proxy_send_timeout 240;
|
12 |
| -proxy_connect_timeout 240; |
13 | 15 |
|
14 |
| -# TLS 1.3 early data |
15 |
| -proxy_set_header Early-Data $ssl_early_data; |
| 16 | +# Proxy Cache and Cookie Settings |
| 17 | +proxy_cache_bypass $cookie_session; |
| 18 | +#proxy_cookie_path / "/; Secure"; # enable at your own risk, may break certain apps |
| 19 | +proxy_no_cache $cookie_session; |
16 | 20 |
|
17 |
| -# Basic Proxy Config |
| 21 | +# Proxy Header Settings |
| 22 | +proxy_set_header Connection $connection_upgrade; |
| 23 | +proxy_set_header Early-Data $ssl_early_data; |
18 | 24 | proxy_set_header Host $host;
|
19 |
| -proxy_set_header X-Real-IP $remote_addr; |
| 25 | +proxy_set_header Upgrade $http_upgrade; |
20 | 26 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
21 |
| -proxy_set_header X-Forwarded-Proto https; |
22 | 27 | proxy_set_header X-Forwarded-Host $host;
|
| 28 | +proxy_set_header X-Forwarded-Proto https; |
23 | 29 | proxy_set_header X-Forwarded-Ssl on;
|
24 |
| -proxy_redirect http:// $scheme://; |
25 |
| -proxy_http_version 1.1; |
26 |
| -proxy_set_header Upgrade $http_upgrade; |
27 |
| -proxy_set_header Connection $connection_upgrade; |
28 |
| -#proxy_cookie_path / "/; HTTPOnly; Secure"; # enable at your own risk, may break certain apps |
29 |
| -proxy_cache_bypass $cookie_session; |
30 |
| -proxy_no_cache $cookie_session; |
31 |
| -proxy_buffers 32 4k; |
32 |
| -proxy_headers_hash_bucket_size 128; |
33 |
| -proxy_headers_hash_max_size 1024; |
| 30 | +proxy_set_header X-Real-IP $remote_addr; |
0 commit comments