Files
frigate/docker/main/rootfs
Josh HawkinsandGitHub 6c4311988b TLS renewal and healthcheck fixes (#25081)
* hand renewed tls keys to the runtime user and time out the go2rtc healthcheck

- Renewed certbot keys were owned by root with mode 0600, so the non-root nginx couldn't read them and every certsync reload failed until the cert expired. certsync now chowns a mounted key to the runtime user before each reload, under the same conditions as the nginx startup handover
- The go2rtc healthcheck curl had no total timeout, so a go2rtc that accepted connections but never answered blocked the check forever. It now gives up after 15 s
- The TLS and non-root docs now tell read-only mount users to set the key's group and group read, which certbot keeps on renewal

* stop chowning mounted tls keys and check they're readable instead

The root chown of a mounted key followed symlinks, so a runtime user that could write the cert folder could have any root file handed to it, and the chown never covered keys renewed after startup. Frigate no longer changes ownership of mounted certs. nginx startup logs an error naming the gid when the runtime user can't read the key, and the TLS docs have users grant group read once on the host, which certbot keeps on renewal. This also drops the certsync handover added earlier on this branch.

* skip the tls key check when tls is disabled and tighten its wording

* check fullchain.pem and folder access in the tls startup check
2026-11-24 06:12:41 -07:00
..
2026-11-23 07:02:15 -07:00