made configs work for kubernetes deployment
parent
e39e42f0c6
commit
1aba64dd33
|
@ -9,20 +9,28 @@ class BaseConfig:
|
||||||
"""Base configuration."""
|
"""Base configuration."""
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
SECRET_KEY = os.environ['JWT_SECRET']
|
SECRET_KEY = os.environ['JWT_SECRET']
|
||||||
|
SERVICE_API_BASE_URL = os.environ['SERVICE_API_BASE_URL']
|
||||||
|
TARTARUS_BASE_URL = os.environ['TARTARUS_BASE_URL']
|
||||||
|
|
||||||
|
|
||||||
class DevelopmentConfig(BaseConfig):
|
class DevelopmentConfig(BaseConfig):
|
||||||
"""Development configuration."""
|
"""Development configuration."""
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
TARTARUS_BASE_URL = 'https://api-test.mycroft.ai/v1'
|
|
||||||
SELENE_BASE_URL = 'https://market-test.mycroft.ai'
|
|
||||||
|
class TestConfig(BaseConfig):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class ProdConfig(BaseConfig):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_config_location():
|
def get_config_location():
|
||||||
environment_configs = dict(
|
environment_configs = dict(
|
||||||
dev='login_api.config.DevelopmentConfig',
|
dev='login_api.config.DevelopmentConfig',
|
||||||
# test=TestConfig,
|
test=TestConfig,
|
||||||
# prod=ProdConfig
|
prod=ProdConfig
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue