class Config(object):
    SECRET_KEY = 'secret key'
    ES_URL = 'http://128.149.122.28:9200' # default port is 9200

    # for PROVES app
    PROVES_ES_PREFIX = 'prov_es'
    PROVES_ES_ALIAS = 'prov_es'

    # ES template
    ES_TEMPLATE = "../config/es_template-prov_es.json"

    # concept expansion mapping
    PROV_EXPANSION_CFG = "../config/prov_expansion_map.json"

    # title and descriptions
    TITLE = "PROV-ES Facet Search"
    DESCRIPTION = "faceted search interface for earth science provenance"
    BADGE = "BETA"

    # max lineage nodes to add to FDL per query; if exceeded, prompt user
    LINEAGE_NODES_MAX = 50


class ProdConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'sqlite:///../database.db'

    CACHE_TYPE = 'null'


class DevConfig(Config):
    DEBUG = True
    DEBUG_TB_INTERCEPT_REDIRECTS = False

    SQLALCHEMY_DATABASE_URI = 'sqlite:///../database.db'
    SQLALCHEMY_ECHO = True

    CACHE_TYPE = 'null'

    # This allows us to test the forms from WTForm
    WTF_CSRF_ENABLED = False

    # for PROVES app
    PROVES_ES_PREFIX = 'prov_es_dev'
    PROVES_ES_ALIAS = 'prov_es_dev'

    # title and descriptions
    BADGE = "DEV"
