add nginx location for sse, update frontend

This commit is contained in:
jb-alvarado 2024-04-29 11:05:51 +02:00
parent c4ea14dc94
commit 1d22cda65c
2 changed files with 12 additions and 2 deletions

View File

@ -31,6 +31,16 @@ server {
proxy_pass http://127.0.0.1:8787; proxy_pass http://127.0.0.1:8787;
} }
location /data {
proxy_set_header Host $http_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_set_header Connection "";
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:8787/data;
}
location /live/ { location /live/ {
alias /usr/share/ffplayout/public/live/; alias /usr/share/ffplayout/public/live/;
} }

@ -1 +1 @@
Subproject commit 52411f61ef25a1b11129a77d26d987f44c6ea543 Subproject commit c4aa6f495fd58be368a4266cb426e2c646e1424a