From 2d3d9080c36df257caeb449877f62facfa5580bf Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 21 Nov 2025 06:25:42 -0700 Subject: [PATCH] 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 --- frigate/config/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frigate/config/config.py b/frigate/config/config.py index 7ce9c73b4..6342c13bf 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -792,6 +792,10 @@ class FrigateConfig(FrigateBaseModel): # copy over auth and proxy config in case auth needs to be enforced safe_config["auth"] = config.get("auth", {}) 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) # Validate and return the config dict.