mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-27 01:43:08 +00:00
25 lines
421 B
Python
25 lines
421 B
Python
|
from pydantic import BaseSettings
|
||
|
|
||
|
|
||
|
class Settings(BaseSettings):
|
||
|
"""
|
||
|
Per-run settings.
|
||
|
"""
|
||
|
|
||
|
#####
|
||
|
# general settings
|
||
|
#####
|
||
|
|
||
|
production_mode: bool = False
|
||
|
|
||
|
#####
|
||
|
# openapi settings
|
||
|
#####
|
||
|
|
||
|
openapi_url: str = "/openapi.json"
|
||
|
docs_url: str | None = None if production_mode else "/docs"
|
||
|
redoc_url: str | None = None if production_mode else "/redoc"
|
||
|
|
||
|
|
||
|
SETTINGS = Settings()
|