forked from MultiverseMiner/multiverseminer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.test
42 lines (33 loc) · 1.31 KB
/
config.py.test
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
# Currently only google is supported
from authomatic.providers import oauth2, oauth1, openid
import os
CONFIG = {
'google': {
'class_': oauth2.Google,
'consumer_key': 'you need the actual oauthclientID here',
'consumer_secret': 'and you need the actual client secret here',
'scope': ['email','openid']
},
# we can add more auth methods here as long as we add login buttons for them...
}
# Statement for enabling the development environment
DEBUG = True
# Define the application directory
basedir = os.path.abspath(os.path.dirname(__file__))
# Define the database - we are working with
# SQLite for this example
SQLALCHEMY_DATABASE_URI = "postgresql+pg8000://postgres@localhost/mm"
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'APP.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'DB_REPO')
# Application threads. A common general assumption is
# using 2 per available processor cores - to handle
# incoming requests using one and performing background
# operations using the other.
THREADS_PER_PAGE = 2
# Enable protection agains *Cross-site Request Forgery (CSRF)*
CSRF_ENABLED = True
# Use a secure, unique and absolutely secret key for
# signing the data.
CSRF_SESSION_KEY = "wwwweeeee."
# Secret key for signing cookies
SECRET_KEY = "c is for cookie"