Skip to content

NVR with realtime local object detection for IP cameras

Re-add support for go2rtc webrtc api (#8828)

Nicolas Mowen595fa3d11112
diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf
index b25c9897da..46706a92f8 100644
--- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf
+++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf
@@ -199,6 +199,15 @@ http {
include proxy.conf;
}
+ # integration uses this to add webrtc candidate
+ location /api/go2rtc/webrtc {
+ limit_except POST {
+ deny all;
+ }
+ proxy_pass http://go2rtc/api/webrtc;
+ include proxy.conf;
+ }
+
location ~* /api/.*\.(jpg|jpeg|png)$ {
rewrite ^/api/(.*)$ $1 break;
proxy_pass http://frigate_api;