-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
40 lines (31 loc) · 879 Bytes
/
config.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
Default configuration for recAPI backed.
Can be overwritten with config.py in instance folder.
"""
import datetime
# Paths relative to the instance folder
TMP_DIR = "img_tmp"
IMAGE_PATH = "img"
THUMBNAIL_PATH = "img_thumb"
MEDIUM_IMAGE_PATH = "img_medium"
RECIPE_JSON = "recipe-list.json"
ADMIN_PASSWORD = "password"
DEBUG = True
WSGI_HOST = "0.0.0.0"
WSGI_PORT = 9005
SECRET_KEY = "super secret key"
SESSION_TYPE = "filesystem"
SESSION_FILE_DIR = "instance/flask_session"
PERMANENT_SESSION_LIFETIME = datetime.timedelta(days=90)
# SQL database info
DB_NAME = "recipe"
DB_USER = ""
DB_PASSWORD = ""
DB_HOST = "127.0.0.1"
DB_PORT = 3306
# List of randomizer tags (for /random route)
RANDOM_TAGS = ["lunch/middag"]
# Email config
EMAIL_FROM = ""
EMAIL_TO = [] # Adresses for all admin users
EMAIL_TO_ADMIN = [] # Adresses for admin mails such as error reports