-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathconfig.py
42 lines (27 loc) · 857 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
41
42
import os
class BaseConfig(object):
# base
DEBUG = False
TESTING = False
SECRET_KEY = os.getenv('SECRET_KEY', default='$ecretKey')
# prevents connection pool exhaustion but disables interactive debugging
PRESERVE_CONTEXT_ON_EXCEPTION = False
# oidc
OAUTH_PROVIDERS = {
'google': {
'CLIENT_ID': '1098478339188-pvi39gpsvclmmucvu16vhrh0179sd100.apps.googleusercontent.com',
'CLIENT_SECRET': '5LFAbNk7rLa00PZOHceQfudp',
'DISCOVERY_DOC': 'https://accounts.google.com/.well-known/openid-configuration',
},
}
# csrf
CSRF_TOKEN_NAME = 'X-Csrf-Token'
# other
API_BASE_URL = 'http://api.pwnedhub.com'
class Development(BaseConfig):
DEBUG = True
class Test(BaseConfig):
DEBUG = True
TESTING = True
class Production(BaseConfig):
pass