mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
only permit GET requests to go2rtc
This commit is contained in:
parent
5c4501efbc
commit
03d3c72821
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user