From 595fa3d111126ced3207c5b00ad182144b8968f8 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 1 Dec 2023 06:47:09 -0700 Subject: [PATCH] Re-add support for go2rtc webrtc api (#8828) --- docker/main/rootfs/usr/local/nginx/conf/nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf index b25c9897d..46706a92f 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;