Boilerplate FastAPI & Dockerfile + NGINX
This commit is contained in:
13
app/core/config.py
Normal file
13
app/core/config.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
class Settings(BaseSettings):
|
||||
PROJECT_NAME: str = "Keywarden"
|
||||
API_V1_STR: str = "/api/v1"
|
||||
SECRET_KEY: str
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
||||
POSTGRES_DSN: str # e.g. postgresql+asyncpg://user:pass@db:5432/keywarden
|
||||
OIDC_ISSUER: str | None = None
|
||||
OIDC_CLIENT_ID: str | None = None
|
||||
OIDC_CLIENT_SECRET: str | None = None
|
||||
|
||||
settings = Settings()
|
Reference in New Issue
Block a user