forked from Mat-O-Lab/BaseFastApiApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
16 lines (15 loc) · 773 Bytes
/
settings.py
File metadata and controls
16 lines (15 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
#from pydantic import BaseSettings
from pydantic_settings import BaseSettings
class Setting(BaseSettings):
name: str = str(os.environ.get("APP_NAME","BaseFastApiApp"))
contact_name: str = str(os.environ.get("ADMIN_NAME","Max Mustermann"))
admin_email: str = str(os.environ.get("ADMIN_MAIL","app_admin@example.com"))
items_per_user: int = 50
version: str = str(os.environ.get("APP_VERSION","v0.0.1"))
config_name: str = str(os.environ.get("APP_MODE","development"))
openapi_url: str ="/api/openapi.json"
docs_url: str = "/api/docs"
source: str = str(os.environ.get("APP_SOURCE","https://example.com"))
desc: str = str(os.environ.get("APP_DESC",""))
org_site: str = str(os.environ.get("ORG_SITE","https://example.com"))