mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-31 07:27:57 +00:00
keep certsync's cert selection identical to nginx's
This commit is contained in:
parent
2bd259b4f2
commit
688c1571e4
@ -26,9 +26,11 @@ function reload_nginx() {
|
||||
|
||||
echo "[INFO] Starting certsync..."
|
||||
|
||||
# Resolved once, to match the choice nginx made at its own startup: watching a
|
||||
# path nginx did not load would compare fingerprints that can never agree.
|
||||
if [ -f /etc/letsencrypt/live/frigate/fullchain.pem ]; then
|
||||
# Resolved once, and the condition must stay identical to the nginx run
|
||||
# script's. Testing only fullchain.pem here would pick the mounted cert on a
|
||||
# half-populated mount that nginx rejected, and the two fingerprints would then
|
||||
# never agree, reloading nginx every cycle forever.
|
||||
if [ -f /etc/letsencrypt/live/frigate/privkey.pem ] && [ -f /etc/letsencrypt/live/frigate/fullchain.pem ]; then
|
||||
lefile="/etc/letsencrypt/live/frigate/fullchain.pem"
|
||||
else
|
||||
lefile="/config/tls/fullchain.pem"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user