Update nginx.conf
Browse files- nginx.conf +20 -6
nginx.conf
CHANGED
@@ -22,9 +22,16 @@ http {
|
|
22 |
proxy_set_header Upgrade $http_upgrade;
|
23 |
proxy_set_header Connection "upgrade";
|
24 |
proxy_set_header Host $host;
|
25 |
-
|
26 |
-
|
27 |
-
proxy_set_header X-Forwarded-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
# 支持流式输出
|
30 |
proxy_buffering off;
|
@@ -38,9 +45,16 @@ http {
|
|
38 |
proxy_set_header Upgrade $http_upgrade;
|
39 |
proxy_set_header Connection "upgrade";
|
40 |
proxy_set_header Host $host;
|
41 |
-
|
42 |
-
|
43 |
-
proxy_set_header X-Forwarded-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
proxy_buffering off;
|
46 |
proxy_cache off;
|
|
|
22 |
proxy_set_header Upgrade $http_upgrade;
|
23 |
proxy_set_header Connection "upgrade";
|
24 |
proxy_set_header Host $host;
|
25 |
+
|
26 |
+
# 删除不需要的请求头
|
27 |
+
proxy_set_header X-Forwarded-For "";
|
28 |
+
proxy_set_header X-Real-IP "";
|
29 |
+
proxy_set_header X-Direct-Url "";
|
30 |
+
proxy_set_header X-Forwarded-Port "";
|
31 |
+
proxy_set_header X-Ip-Token "";
|
32 |
+
proxy_set_header X-Request-Id "";
|
33 |
+
proxy_set_header X-Amzn-Trace-Id "";
|
34 |
+
proxy_set_header X-Forwarded-Proto "";
|
35 |
|
36 |
# 支持流式输出
|
37 |
proxy_buffering off;
|
|
|
45 |
proxy_set_header Upgrade $http_upgrade;
|
46 |
proxy_set_header Connection "upgrade";
|
47 |
proxy_set_header Host $host;
|
48 |
+
|
49 |
+
# 删除不需要的请求头
|
50 |
+
proxy_set_header X-Forwarded-For "";
|
51 |
+
proxy_set_header X-Real-IP "";
|
52 |
+
proxy_set_header X-Direct-Url "";
|
53 |
+
proxy_set_header X-Forwarded-Port "";
|
54 |
+
proxy_set_header X-Ip-Token "";
|
55 |
+
proxy_set_header X-Request-Id "";
|
56 |
+
proxy_set_header X-Amzn-Trace-Id "";
|
57 |
+
proxy_set_header X-Forwarded-Proto "";
|
58 |
|
59 |
proxy_buffering off;
|
60 |
proxy_cache off;
|