pssecret-server/pssecret_server/settings.py
2025-01-03 12:04:51 +01:00

13 lines
327 B
Python

from pydantic import RedisDsn
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env")
redis_url: RedisDsn = RedisDsn("redis://localhost")
secrets_encryption_key: bytes
def get_settings() -> Settings:
return Settings()