Ignoring unknown vars in .env file
This commit is contained in:
parent
6463f6f9a2
commit
e6bbd01ea9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue