-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigTemplate.py
26 lines (25 loc) · 1006 Bytes
/
ConfigTemplate.py
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
# TODO Add the right values
from tempfile import mkdtemp
from decouple import config
DOMAIN = config('DOMAIN', default='0.0.0.0')
PORT = config('PORT', default='5000')
tool_config = {
"DEBUG": config('DEBUG', default=True, cast=bool),
"ENV": "production",
"CACHE_TYPE": "simple",
"CACHE_DEFAULT_TIMEOUT": 600,
"SECRET_KEY": "EF186261-4F2E-4CCC-9C5C-6935CF0262F4",
"SESSION_TYPE": "filesystem",
"SESSION_FILE_DIR": mkdtemp(),
"SESSION_COOKIE_NAME": "flask-session-id",
"SESSION_COOKIE_HTTPONLY": True,
"SESSION_COOKIE_SECURE": True, # should be True in case of HTTPS usage (production)
"SESSION_COOKIE_SAMESITE": "None", # should be 'None' in case of HTTPS usage (production)
"DEBUG_TB_INTERCEPT_REDIRECTS": False,
"SERVER_NAME": DOMAIN + (':' + PORT) if PORT != '80' else '',
"LEARN_REST_KEY" : "REST_KEY",
"LEARN_REST_SECRET" : "REST_SECRET",
"LEARN_REST_URL" : "REST_URL",
"APP_URL" : "https://APP_URL",
"VERIFY_CERTS" : "True"
}