Skip to content

Commit 1e00045

Browse files
🚧 test Connection keep-alive
1 parent 88efb42 commit 1e00045

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎nginx.conf‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,35 @@ http {
1616
ssl_certificate nginx.crt;
1717
ssl_certificate_key nginx.key;
1818

19+
client_max_body_size 0;
20+
1921
location ~ "^/[a-z0-9]{32}/geode/" {
2022
if ($request_method !~ ^(GET|POST|OPTIONS)$) {
2123
return 405;
2224
}
2325
rewrite "^/[a-z0-9]{32}/geode/(.*)" /$1 break;
24-
proxy_pass http://localhost:5000;
26+
proxy_pass http://geode:5000;
2527
proxy_http_version 1.1;
2628
proxy_set_header Host $host;
2729
proxy_set_header X-Real-IP $remote_addr;
2830
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
29-
proxy_set_header X-Forwarded-Proto https;
31+
proxy_set_header X-Forwarded-Proto $scheme;
3032
}
3133

3234
location ~ "^/[a-z0-9]{32}/viewer/" {
3335
if ($request_method !~ ^(GET|POST|OPTIONS)$) {
3436
return 405;
3537
}
3638
rewrite "^/[a-z0-9]{32}/viewer/(.*)" /$1 break;
37-
proxy_pass http://localhost:1234;
39+
proxy_pass http://viewer:1234;
3840
proxy_http_version 1.1;
3941
proxy_set_header Host $host;
4042
proxy_set_header X-Real-IP $remote_addr;
4143
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
42-
proxy_set_header X-Forwarded-Proto https;
43-
proxy_set_header Connection "Upgrade";
44+
proxy_set_header X-Forwarded-Proto $scheme;
45+
46+
proxy_set_header Connection "keep-alive, Upgrade";
47+
proxy_set_header Upgrade websocket;
4448
}
4549
}
4650
}

0 commit comments

Comments
 (0)