frigate/docker/main/rootfs/usr/local/nginx/conf
Claude 5ba7802316
Serve preview files from non-default recording roots via nginx
When cameras are configured with recording paths outside /media/frigate
(e.g. /video1, /video2), preview mp4 files generated there had no
corresponding nginx location block — requests returned 404.

At nginx startup, get_nginx_settings.py now extracts unique recording
roots outside /media/frigate from the Frigate config. The nginx run
script uses a new extra_recordings.gotmpl template to generate
location blocks (e.g. /video1/preview/) with alias directives for
each such root, included via extra_recordings.conf.

The API already returns correct src URLs for these paths (the existing
replace(BASE_DIR, "") leaves non-media paths unchanged), so no API
changes are needed.

https://claude.ai/code/session_016bxjbVpx8DqpjysnGYmXdx
2026-03-13 09:01:56 +00:00
..
auth_location.conf Auth! (#11347) 2024-05-18 10:36:13 -06:00
auth_request.conf UI viewer role (#16978) 2025-03-08 10:01:08 -06:00
go2rtc_upstream.conf TLS support (#11678) 2024-06-01 10:29:46 -05:00
nginx.conf Serve preview files from non-default recording roots via nginx 2026-03-13 09:01:56 +00:00
proxy_trusted_headers.conf fix: additional proxy headers for complete support of oauth2-proxy (#21434) 2025-12-27 07:33:25 -06:00
proxy.conf Auth! (#11347) 2024-05-18 10:36:13 -06:00