From e6bbd01ea9160a67c7e59b95e2c8ff5962af441e Mon Sep 17 00:00:00 2001 From: Ivan Golikov Date: Mon, 6 Jan 2025 17:20:29 +0100 Subject: [PATCH] Ignoring unknown vars in .env file --- pssecret_server/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pssecret_server/settings.py b/pssecret_server/settings.py index ae7fffe..86ffa9c 100644 --- a/pssecret_server/settings.py +++ b/pssecret_server/settings.py @@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): - model_config = SettingsConfigDict(env_file=".env") + model_config = SettingsConfigDict(env_file=".env", extra="ignore") redis_url: RedisDsn = RedisDsn("redis://localhost") secrets_encryption_key: bytes