File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ while true; do
85
85
86
86
ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} location ${ROUTE_PATH} {\n"
87
87
ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} proxy_pass http://${ROUTE_DEST} :${ROUTE_PORT} ;\n"
88
+ ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} proxy_http_version 1.1;\n"
89
+ ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} proxy_set_header Upgrade \$ http_upgrade;\n"
90
+ ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} proxy_set_header Connection \" upgrade\" ;\n"
88
91
ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} proxy_set_header Host \$ host;\n"
89
92
ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} proxy_set_header X-Real-IP \$ remote_addr;\n"
90
93
ADDITIONAL_ROUTES=" ${ADDITIONAL_ROUTES} proxy_set_header X-Forwarded-For \$ proxy_add_x_forwarded_for;\n"
Original file line number Diff line number Diff line change @@ -27,11 +27,16 @@ http {
27
27
listen ${NGINX_PORT};
28
28
server_name _;
29
29
30
+ client_max_body_size 0;
31
+ proxy_connect_timeout 600s;
32
+ proxy_read_timeout 600s;
33
+ proxy_send_timeout 600s;
34
+
30
35
location / {
31
36
proxy_pass http://${PROXY_PASS_DEFAULT}:${PROXY_PORT_DEFAULT};
32
- proxy_http_version 1.1; # <-- Important for WebSocket
33
- proxy_set_header Upgrade $http_upgrade; # <-- Important for WebSocket
34
- proxy_set_header Connection "upgrade"; # <-- Important for WebSocket
37
+ proxy_http_version 1.1;
38
+ proxy_set_header Upgrade $http_upgrade;
39
+ proxy_set_header Connection "upgrade";
35
40
proxy_set_header Host $host;
36
41
proxy_set_header X-Real-IP $remote_addr;
37
42
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
You can’t perform that action at this time.
0 commit comments