pssecret-server/pssecret_server/settings.py

14 lines
327 B
Python
Raw Permalink Normal View History

from pydantic import RedisDsn
from pydantic_settings import BaseSettings, SettingsConfigDict
2022-12-17 08:53:50 +00:00
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env")
redis_url: RedisDsn = RedisDsn("redis://localhost")
secrets_encryption_key: bytes
2022-12-17 08:53:50 +00:00
def get_settings() -> Settings:
return Settings()