add env file support

This commit is contained in:
2025-11-16 14:38:23 +01:00
parent 129e1984a3
commit eeea1b2091
5 changed files with 16 additions and 4 deletions

9
settings.py Normal file
View File

@@ -0,0 +1,9 @@
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file='.env', env_file_encoding='utf-8')
jwt_secret: str
jwt_algorithm: str
settings = Settings()