NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
just check for secret file specifically (#11877)
Blake Blackshearb3eab17f2c93
diff --git a/.github/FUNDING.yml b/.github/FUNDING.ymlindex d212efb04d..b8892ce806 100644--- a/.github/FUNDING.yml+++ b/.github/FUNDING.yml@@ -1,3 +1,4 @@github:- blakeblackshear- NickM-27+ - hawkeye217diff --git a/frigate/api/auth.py b/frigate/api/auth.pyindex ff1fa6bfff..96bd9e2b20 100644--- a/frigate/api/auth.py+++ b/frigate/api/auth.py@@ -87,11 +87,7 @@ def get_jwt_secret() -> str:)jwt_secret = os.environ.get(JWT_SECRET_ENV_VAR)# check docker secrets- elif (- os.path.isdir("/run/secrets")- and os.access("/run/secrets", os.R_OK)- and JWT_SECRET_ENV_VAR in os.listdir("/run/secrets")- ):+ elif os.path.isfile(os.path.join("/run/secrets", JWT_SECRET_ENV_VAR)):logger.debug(f"Using jwt secret from {JWT_SECRET_ENV_VAR} docker secret file.")jwt_secret = Path(os.path.join("/run/secrets", JWT_SECRET_ENV_VAR)).read_text()# check for the addon options file