-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
37 lines (27 loc) · 1.03 KB
/
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
__author__ = 'cody'
class Config():
"""Base configuration class. Any variable set here is loaded in all apps"""
DEBUG = True
SECRET_KEY = "1234"
LOG_DIRECTORY = "/tmp"
LOG_FORMAT_STRING = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
MAX_LOG_BYTES = 10000
class Webfront(Config):
DATABASE_URL = "http://localhost:5000"
LOGIN_URI = "/login"
RECAPTCHA_VERIFY_URL = "http://www.google.com/recaptcha/api/verify"
RECAPTCHA_PUBLIC_KEY = ""
RECAPTCHA_PRIVATE_KEY = ""
DISABLE_ALL_RECAPTCHA = True # Overrides the enabled fields below.
REACTIVE_RECAPTCHA_ENABLED = False # Triggers on suspicious activity
FORCED_RECAPTCHA_ENABLED = False # User always has to fill this one in
FAILED_ATTEMPTS_CAPTCHA_THRESHOLD = 3
class Dbapi(Config):
USER = "todolist"
PASSWORD = "todolist"
HOST = "localhost"
PORT = "5432"
DBNAME = "todolist"
SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://{0}:{1}@{2}:{3}/{4}".format(
USER, PASSWORD, HOST, PORT, DBNAME
)