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,18 +165,18 @@ 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/ {
proxy_pass http://go2rtc/; limit_except GET {
include proxy.conf; deny all;
} }
proxy_pass http://go2rtc/;
location ~* /api/go2rtc([/]?.*)$ {
proxy_pass http://go2rtc;
rewrite ^/api/go2rtc(.*)$ /api$1 break;
include proxy.conf; include proxy.conf;
} }