pssecret-server/pssecret_server/settings.py

14 lines
343 B
Python
Raw Normal View History

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