2024-12-26 23:34:54 +00:00
|
|
|
from pydantic import RedisDsn
|
2025-01-03 15:06:08 +00:00
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
2022-12-17 08:53:50 +00:00
|
|
|
|
|
|
|
|
2024-12-26 23:34:54 +00:00
|
|
|
class Settings(BaseSettings):
|
2025-01-03 15:06:08 +00:00
|
|
|
model_config = SettingsConfigDict(env_file=".env")
|
|
|
|
|
2024-12-26 23:34:54 +00:00
|
|
|
redis_url: RedisDsn = RedisDsn("redis://localhost")
|
2025-01-03 15:06:08 +00:00
|
|
|
secrets_encryption_key: bytes
|
2022-12-17 08:53:50 +00:00
|
|
|
|
|
|
|
|
2025-01-01 18:18:38 +00:00
|
|
|
def get_settings() -> Settings:
|
|
|
|
return Settings()
|