Ivan Golikov
7fae1a18b6
Reviewed-on: #4 Co-authored-by: Ivan Golikov <root@ivnglkv.me> Co-committed-by: Ivan Golikov <root@ivnglkv.me>
13 lines
327 B
Python
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()
|