simple echo websocket working

This commit is contained in:
Blake Blackshear
2021-02-13 08:09:44 -06:00
parent 69cab1e6bb
commit 22461d1728
4 changed files with 29 additions and 4 deletions

View File

@@ -102,6 +102,14 @@ http {
root /media/frigate;
}
location /ws {
proxy_pass http://frigate_api/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /api/ {
add_header 'Access-Control-Allow-Origin' '*';
add_header Cache-Control "no-store";