-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_settings.py.template
64 lines (55 loc) · 1.6 KB
/
local_settings.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
APP_HOST = 'http://127.0.0.1:9000'
UI_HOST = 'http://127.0.0.1:8080'
DATABASE = {
'name': 'learning_platform',
'user': 'postgres',
'password': 'qwe12345',
'host': 'localhost',
}
API = {
'confirm_url': f'{UI_HOST}/emailConfirmation/'
}
FGPE = {
'url': '',
'username': '',
'password': '',
'ENDPOINT_LOGIN': 'auth/login',
'ENDPOINT_REFRESH_TOKEN': 'auth/refresh'
}
MAIL = {
'MAIL_SERVER': 'smtp.office365.com',
'MAIL_PORT': 587,
'MAIL_USE_TLS': False,
'MAIL_USE_SSL': False,
'MAIL_USERNAME': '[email protected]',
'MAIL_PASSWORD': ''
}
'''
KEEP IN SECRET!
CHANGE TO OTHER VALUES!
'''
SECRETS = {
'APP_SECRET': 'random_secret_key',
'JWT_SECRET_KEY': 'super-secret',
'TOKEN_SECRET_KEY': 'super-secret',
'TOKEN_SECURITY_PASSWORD_SALT': 'super-secret'
}
# OAUTH
OAUTH = {
'MICROSOFT': {
'CLIENT_ID': '',
'CLIENT_SECRET': '',
'REDIRECT_URI': f'http://localhost:9000/api/oauth/callback/microsoft',
# AUTHORITY_URL ending determines type of account that can be authenticated:
# /organizations = organizational accounts only
# /consumers = MSAs only (Microsoft Accounts - Live.com, Hotmail.com, etc.)
# /common = allow both types of accounts
'AUTHORITY_URL': 'https://login.microsoftonline.com/common',
'AUTH_ENDPOINT': '/oauth2/v2.0/authorize',
'TOKEN_ENDPOINT': '/oauth2/v2.0/token',
'RESOURCE': 'https://graph.microsoft.com/',
'API_VERSION': 'v1.0',
'SCOPES': ['User.Read'] # Add other scopes/permissions as needed.
}
}
EXERCISES_MAX_AMOUNT = 200