2019-12-18 19:02:17 +00:00
|
|
|
import os
|
2020-05-26 02:52:36 +00:00
|
|
|
from os import environ
|
|
|
|
|
2019-12-18 19:02:17 +00:00
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
2019-11-21 16:36:32 +00:00
|
|
|
NAME = "CR Connect Workflow"
|
2019-12-11 16:45:44 +00:00
|
|
|
TESTING = True
|
2020-02-18 21:38:56 +00:00
|
|
|
TOKEN_AUTH_SECRET_KEY = "Shhhh!!! This is secret! And better darn well not show up in prod."
|
2020-04-15 18:14:58 +00:00
|
|
|
|
2020-05-26 02:52:36 +00:00
|
|
|
# This is here, for when we are running the E2E Tests in the frontend code bases.
|
|
|
|
# which will set the TESTING envronment to true, causing this to execute, but we need
|
|
|
|
# to respect the environment variables in that case.
|
|
|
|
# when running locally the defaults apply, meaning we use crc_test for doing the tests
|
|
|
|
# locally, and we don't over-write the database. Did you read this far? Have a cookie!
|
2020-06-14 03:34:12 +00:00
|
|
|
PB_ENABLED = environ.get('PB_ENABLED', default="false") == "true"
|
2020-05-26 02:52:36 +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_test")
|
|
|
|
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-05-31 20:49:39 +00:00
|
|
|
ADMIN_UIDS = ['dhf8r']
|
2020-05-26 02:52:36 +00:00
|
|
|
|
2020-04-15 18:14:58 +00:00
|
|
|
print('### USING TESTING CONFIG: ###')
|
|
|
|
print('SQLALCHEMY_DATABASE_URI = ', SQLALCHEMY_DATABASE_URI)
|
|
|
|
print('TESTING = ', TESTING)
|