pssecret-server/pssecret_server/settings.py

14 lines
327 B
Python
Raw Normal View History

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