pssecret-server/pssecret_server/settings.py
Ivan Golikov 7fae1a18b6 Secrets encryption (#4)
Reviewed-on: #4
Co-authored-by: Ivan Golikov <root@ivnglkv.me>
Co-committed-by: Ivan Golikov <root@ivnglkv.me>
2025-01-03 15:06:08 +00: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()