La connexion websocket fonctionne maintenant.

This commit is contained in:
batche
2022-12-28 16:54:24 +01:00
parent 9d4903fd1e
commit 2e10bbf9f0
6 changed files with 48 additions and 49 deletions

View File

@@ -11,11 +11,12 @@ server {
proxy_pass http://backend_dev:3000;
}
location /chat {
proxy_pass http://backend_dev:8080/api/v2/chat;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header Connection "upgrade";
proxy_pass http://backend_dev:5000/api/v2/chat;
}
location / {
proxy_set_header Host $host;