add go2rtc version (#6390)

Update System.jsx
This commit is contained in:
Sergey Krashevich
2023-05-05 05:04:06 +03:00
committed by GitHub
parent aded314f3c
commit f52b1212cd
2 changed files with 21 additions and 8 deletions

View File

@@ -204,6 +204,15 @@ http {
proxy_set_header Host $host;
}
location ~* /api/go2rtc([/]?.*)$ {
proxy_pass http://go2rtc;
rewrite ^/api/go2rtc(.*)$ /api$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location ~* /api/.*\.(jpg|jpeg|png)$ {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';