mirror of
https://github.com/shirayu/whispering.git
synced 2024-06-12 18:29:21 +00:00
fix ws header rewrite
This commit is contained in:
parent
8f820b09d9
commit
1d6a2f91bf
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue