frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx
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
..
data TLS support (#11678) 2024-06-01 10:29:46 -05:00
dependencies.d Community Supported Boards Framework (#7114) 2023-07-23 16:45:29 -05:00
finish Community Supported Boards Framework (#7114) 2023-07-23 16:45:29 -05:00
notification-fd TLS support (#11678) 2024-06-01 10:29:46 -05:00
producer-for Community Supported Boards Framework (#7114) 2023-07-23 16:45:29 -05:00
run Serve preview files from non-default recording roots via nginx 2026-03-13 09:01:56 +00:00
timeout-kill Community Supported Boards Framework (#7114) 2023-07-23 16:45:29 -05:00
type Community Supported Boards Framework (#7114) 2023-07-23 16:45:29 -05:00