mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 21:44:13 +03:00
Include DB in safe mode config
Copy DB when going into safe mode to avoid creating a new one if a user has configured a separate location
This commit is contained in:
parent
8e8346099e
commit
2d3d9080c3
@ -792,6 +792,10 @@ class FrigateConfig(FrigateBaseModel):
|
|||||||
# copy over auth and proxy config in case auth needs to be enforced
|
# copy over auth and proxy config in case auth needs to be enforced
|
||||||
safe_config["auth"] = config.get("auth", {})
|
safe_config["auth"] = config.get("auth", {})
|
||||||
safe_config["proxy"] = config.get("proxy", {})
|
safe_config["proxy"] = config.get("proxy", {})
|
||||||
|
|
||||||
|
# copy over database config for auth and so a new db is not created
|
||||||
|
safe_config["database"] = config.get("database", {})
|
||||||
|
|
||||||
return cls.parse_object(safe_config, **context)
|
return cls.parse_object(safe_config, **context)
|
||||||
|
|
||||||
# Validate and return the config dict.
|
# Validate and return the config dict.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user