only permit GET requests to go2rtc

This commit is contained in:
Blake Blackshear 2023-11-27 06:42:45 -06:00
parent 5c4501efbc
commit 03d3c72821

View File

@ -165,21 +165,21 @@ http {
} }
location /live/mse/ { location /live/mse/ {
limit_except GET {
deny all;
}
proxy_pass http://go2rtc/; proxy_pass http://go2rtc/;
include proxy.conf; include proxy.conf;
} }
location /live/webrtc/ { location /live/webrtc/ {
limit_except GET {
deny all;
}
proxy_pass http://go2rtc/; proxy_pass http://go2rtc/;
include proxy.conf; include proxy.conf;
} }
location ~* /api/go2rtc([/]?.*)$ {
proxy_pass http://go2rtc;
rewrite ^/api/go2rtc(.*)$ /api$1 break;
include proxy.conf;
}
location ~* /api/.*\.(jpg|jpeg|png)$ { location ~* /api/.*\.(jpg|jpeg|png)$ {
rewrite ^/api/(.*)$ $1 break; rewrite ^/api/(.*)$ $1 break;
proxy_pass http://frigate_api; proxy_pass http://frigate_api;