-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py.template
47 lines (37 loc) · 1.24 KB
/
config.py.template
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
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
DEBUG = False
# A secret key used by Flask for signing. KEEP THIS SECRET!
# (e.g. 'JbwLnLgsfxDInozQudc6IFPe0eYecW8f')
SECRET_KEY = "CHANGEME"
# Chrome 80 SameSite=None; Secure fix
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_SAMESITE = "None"
# A list of domains that are allowed to use the tool. (e.g. ['example.com', 'example.edu'])
ALLOWED_CANVAS_DOMAINS = []
# Canvas Instance URL ex. `https://example.instructure.com`
CANVAS_URL = "https://example.com"
API_KEY = "CHANGEME" # Canvas API Key
PYLTI_CONFIG = {
"consumers": {
"key": { # consumer key
"secret": b"secret" # shared secret must be bytes (b'')
}
},
"roles": {
"staff": [
"urn:lti:instrole:ims/lis/Administrator",
"Instructor",
"ContentDeveloper",
"urn:lti:role:ims/lis/TeachingAssistant",
]
},
}
TIME_ZONE = "US/Eastern"
LOCAL_TIME_FORMAT = "%m/%d/%Y %I:%M %p"
LOG_FILE = "logs/due_date_changer.log"
LOG_FORMAT = "%(asctime)s [%(levelname)s] {%(filename)s:%(lineno)d} %(message)s"
LOG_LEVEL = "WARNING"
LOG_MAX_BYTES = 1024 * 1024 * 5 # 5 MB
LOG_BACKUP_COUNT = 1
GOOGLE_ANALYTICS = "" # The Google Analytics ID to use.