Ignoring unknown vars in .env file

This commit is contained in:
Ivan Golikov 2025-01-06 17:20:29 +01:00
parent 6463f6f9a2
commit e6bbd01ea9

View file

@ -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