support-organizer/backend/fgo-request-manager/config/settings.py

36 lines
978 B
Python
Raw Normal View History

2023-09-26 20:00:26 +00:00
# pylint: disable=too-few-public-methods
2023-10-02 13:55:13 +00:00
from pathlib import Path
2023-10-02 10:48:42 +00:00
2023-11-24 19:50:18 +00:00
class ServerSettings:
HOSTNAME = "localhost"
PORT = 5000
class DatabaseSettings:
DATABASE_DIRECTORY = Path(__file__).parents[1] / "database" / "storage"
class APISettings:
2023-09-26 20:00:26 +00:00
API_TITLE = "Support Organizer"
2023-11-24 19:50:18 +00:00
API_VERSION = "0.1.0-a"
2023-09-26 20:00:26 +00:00
OPENAPI_VERSION = "3.1.0"
# openapi.json settings
OPENAPI_URL_PREFIX = "/"
OPENAPI_JSON_PATH = "openapi.json"
# swagger settings
OPENAPI_SWAGGER_UI_PATH = "/swagger"
2023-11-24 19:50:18 +00:00
OPENAPI_SWAGGER_UI_URL = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.10.0/"
2023-09-26 20:00:26 +00:00
SWAGGER_UI_DOC_EXPANSION = "list"
# redoc settings
OPENAPI_REDOC_PATH = "/redoc"
OPENAPI_REDOC_URL = "https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"
# Info settings
API_SPEC_OPTIONS = {
'info': {
'description': 'Support Organizer for FGO'
}
}
2023-11-24 19:50:18 +00:00
FILE_SAVE_DIRECTORY = Path(__file__).parents[1] / ".temp"