Skip to content

Commit 8418de4

Browse files
committed
Add location for /ws route
1 parent 55df645 commit 8418de4

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

docker/nginx.conf

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,37 @@ http {
3838

3939
ssl_session_timeout 5m;
4040

41-
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
41+
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
4242
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
4343
ssl_prefer_server_ciphers on;
4444

45+
location /ws {
46+
proxy_pass http://goapp;
47+
proxy_http_version 1.1;
48+
proxy_set_header Host $host;
49+
proxy_set_header X-Forwarded-Host $host;
50+
proxy_set_header X-Forwarded-Server $host;
51+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
52+
proxy_set_header X-Real-IP $remote_addr;
53+
proxy_set_header Upgrade $http_upgrade;
54+
proxy_set_header Connection "Upgrade";
55+
proxy_redirect off;
56+
}
57+
4558
location /api {
4659
proxy_pass http://goapp;
4760
proxy_set_header Host $host;
4861
proxy_set_header X-Forwarded-Host $host;
4962
proxy_set_header X-Forwarded-Server $host;
5063
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
5164
proxy_set_header X-Real-IP $remote_addr;
52-
proxy_set_header Upgrade $http_upgrade;
53-
proxy_set_header Connection "Upgrade";
5465
proxy_redirect off;
5566
}
5667

5768
location / {
5869
root /opt/factorio-server-manager/app;
5970
try_files $uri /index.html;
6071
}
61-
6272
}
6373
}
6474

0 commit comments

Comments
 (0)