From 5d001855f115a2de45746004be3980a4f54c1d0c Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 1 Feb 2026 10:49:46 -0600 Subject: [PATCH] nixos/frigate: fix HTTP method allowed for WebRTC API The Frigate Home Assistant integration POSTs to this endpoint to start a WebRTC session[1], so the allowed method should be POST, not GET. The current configuration causes an HTTP 403 error when viewing a camera stream in Home Assistant: ``` aiohttp.client_exceptions.ContentTypeError: 403, message='Attempt to decode JSON with unexpected mimetype: text/html', url='https://$HOSTNAME/api/go2rtc/webrtc?src=$CAMERA' ``` [1]: https://github.com/blakeblackshear/frigate-hass-integration/blob/v5.14.1/custom_components/frigate/camera.py#L575 --- nixos/modules/services/video/frigate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/video/frigate.nix b/nixos/modules/services/video/frigate.nix index f8d8f64e55da..834e68da29e9 100644 --- a/nixos/modules/services/video/frigate.nix +++ b/nixos/modules/services/video/frigate.nix @@ -507,7 +507,7 @@ in nginxAuthRequest + nginxProxySettings + '' - limit_except GET { + limit_except POST { deny all; } '';