mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-25 18:55:25 -06:00
Merge c9d9aa9b44
into 92553fa666
This commit is contained in:
commit
f5d999ac08
@ -134,7 +134,7 @@ def get_jwt_secret() -> str:
|
|||||||
logger.debug("Using jwt secret from .jwt_secret file in config directory.")
|
logger.debug("Using jwt secret from .jwt_secret file in config directory.")
|
||||||
with open(jwt_secret_file) as f:
|
with open(jwt_secret_file) as f:
|
||||||
try:
|
try:
|
||||||
jwt_secret = f.readline()
|
jwt_secret = f.readline().strip()
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"Unable to read jwt token from .jwt_secret file in config directory. A new jwt token will be created at each startup."
|
"Unable to read jwt token from .jwt_secret file in config directory. A new jwt token will be created at each startup."
|
||||||
|
Loading…
Reference in New Issue
Block a user