server accepts websocket connection

This commit is contained in:
2024-08-21 20:05:14 +02:00
parent 1a4c919473
commit 1eb7da97d2
9 changed files with 64 additions and 19 deletions

View File

@ -28,6 +28,22 @@ http {
location / {
proxy_pass http://djangoserver:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /ws {
proxy_pass http://djangoserver:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 86400;
}
location /admin {