2020-02-05 20:17:47 +00:00
|
|
|
import os
|
2020-05-26 02:28:33 +00:00
|
|
|
from os import environ
|
|
|
|
|
2020-02-05 20:17:47 +00:00
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
NAME = "CR Connect Workflow"
|
|
|
|
DEVELOPMENT = True
|
|
|
|
TESTING = True
|
2020-02-18 21:38:56 +00:00
|
|
|
TOKEN_AUTH_TTL_HOURS = 2
|
|
|
|
TOKEN_AUTH_SECRET_KEY = "Shhhh!!! This is secret! And better darn well not show up in prod."
|
2020-02-21 02:10:34 +00:00
|
|
|
FRONTEND_AUTH_CALLBACK = "http://localhost:4200/session" # Not Required
|
2020-02-18 21:38:56 +00:00
|
|
|
|
2020-05-26 02:28:33 +00:00
|
|
|
DB_HOST = environ.get('DB_HOST', default="localhost")
|
|
|
|
DB_PORT = environ.get('DB_PORT', default="5432")
|
|
|
|
DB_NAME = environ.get('DB_NAME', default="crc_dev")
|
|
|
|
DB_USER = environ.get('DB_USER', default="crc_user")
|
|
|
|
DB_PASSWORD = environ.get('DB_PASSWORD', default="crc_pass")
|
|
|
|
SQLALCHEMY_DATABASE_URI = environ.get(
|
|
|
|
'SQLALCHEMY_DATABASE_URI',
|
|
|
|
default="postgresql://%s:%s@%s:%s/%s" % (DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME)
|
|
|
|
)
|
2020-04-15 18:03:04 +00:00
|
|
|
|
|
|
|
print('+++ USING TRAVIS TESTING CONFIG: +++')
|
|
|
|
print('DEVELOPMENT = ', DEVELOPMENT)
|
|
|
|
print('TESTING = ', TESTING)
|
|
|
|
print('FRONTEND_AUTH_CALLBACK = ', FRONTEND_AUTH_CALLBACK)
|
2020-05-26 02:28:33 +00:00
|
|
|
print('DB_HOST = ', DB_HOST)
|