disable http auth for websockets

This commit is contained in:
j3d1 2023-11-22 22:37:56 +01:00
parent c88d434f39
commit e45a1f271e
4 changed files with 22 additions and 5 deletions

View file

@ -24,6 +24,14 @@ server {
try_files $uri $uri/ /index.html;
}
location /ws {
proxy_http_version 1.1;
auth_basic off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://c3lf-sys3;
}
location /api {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;