fix ws header rewrite

This commit is contained in:
ricwo 2022-11-10 17:43:33 +01:00
parent 8f820b09d9
commit 1d6a2f91bf

View file

@ -9,11 +9,16 @@ http {
server whisper-2:7002 weight=1;
server whisper-3:7003 weight=1;
}
server {
listen 8080;
location / {
# all of these are websocket routes
location /transcribe {
proxy_pass http://loadbalancer;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
}