-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
27 lines (25 loc) · 767 Bytes
/
config.py
File metadata and controls
27 lines (25 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from dotenv import dotenv_values
config = dotenv_values(".env")
CONFIG = {
"PROPAGATE_EXCEPTIONS": True,
"API_TITLE": "REST API Documentation of Rangkuman ML",
"API_VERSION": "v1",
"OPENAPI_VERSION": "3.0.3",
"OPENAPI_URL_PREFIX": "/",
"OPENAPI_SWAGGER_UI_PATH": "/docs",
"OPENAPI_SWAGGER_UI_URL": "https://cdn.jsdelivr.net/npm/swagger-ui-dist/",
"SECRET_KEY": config["SECRET_KEY"],
"API_SPEC_OPTIONS": {
"security": [{"bearerAuth": []}],
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
}
}
}
},
"CACHE_TYPE": "SimpleCache",
"CACHE_DEFAULT_TIMEOUT": 300
}