<reponame>kelockhart/biblib-service<filename>config.py
# encoding: utf-8
"""
Configuration file. Please prefix application specific config values with
the application name.
"""

import os
import pwd

LOG_PATH = os.path.abspath(
    os.path.join(os.path.dirname(__file__), '../')
)
LOG_PATH = '{home}/logs/'.format(home=LOG_PATH)
LOG_STDOUT = True

if not os.path.isdir(LOG_PATH):
    os.mkdir(LOG_PATH)

# For running tests on TravisCI
SQLALCHEMY_BINDS = {
    'libraries': 'postgresql+psycopg2://postgres:@localhost/testdb'
}

ENVIRONMENT = os.getenv('ENVIRONMENT', 'unset-env').lower()

# These lines are necessary only if the app needs to be a client of the
# adsws-api
BIBLIB_TWOPOINTOH_SERVICE_URL = 'https://api.adsabs.edu/v1/harbour'
BIBLIB_CLASSIC_SERVICE_URL = 'https://api.adsabs.edu/v1/harbour'
BIBLIB_SOLR_BIG_QUERY_URL = 'https://api.adsabs.search/v1/bigquery'
BIBLIB_USER_EMAIL_ADSWS_API_URL = 'https://api.adsabs.harvard.edu/v1/user'
BIBLIB_ADSWS_API_TOKEN = '<PASSWORD> api token!'
BIBLIB_ADSWS_API_DB_URI = 'sqlite:////tmp/test.db'

# encoding: utf-8
"""
Configuration file. Please prefix application specific config values with
the application name.
"""

import os
import pwd

LOG_PATH = os.path.abspath(
    os.path.join(os.path.dirname(__file__), '../')
)
LOG_PATH = '{home}/logs/'.format(home=LOG_PATH)
LOG_STDOUT = True

if not os.path.isdir(LOG_PATH):
    os.mkdir(LOG_PATH)

# For running tests on TravisCI
SQLALCHEMY_BINDS = {
    'libraries': 'postgresql+psycopg2://postgres:@localhost/testdb'
}

ENVIRONMENT = os.getenv('ENVIRONMENT', 'unset-env').lower()

# These lines are necessary only if the app needs to be a client of the
# adsws-api
BIBLIB_TWOPOINTOH_SERVICE_URL = 'https://api.adsabs.edu/v1/harbour'
BIBLIB_CLASSIC_SERVICE_URL = 'https://api.adsabs.edu/v1/harbour'
BIBLIB_SOLR_BIG_QUERY_URL = 'https://api.adsabs.search/v1/bigquery'
BIBLIB_USER_EMAIL_ADSWS_API_URL = 'https://api.adsabs.harvard.edu/v1/user'
BIBLIB_ADSWS_API_TOKEN = '<PASSWORD> api token!'
BIBLIB_ADSWS_API_DB_URI = 'sqlite:////tmp/test.db'
# encoding: utf-8 Configuration file. Please prefix application specific config values with the application name. # For running tests on TravisCI # These lines are necessary only if the app needs to be a client of the # adsws-api