diff options
Diffstat (limited to 'cli/app/settings/app_cfg.py')
| -rw-r--r-- | cli/app/settings/app_cfg.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cli/app/settings/app_cfg.py b/cli/app/settings/app_cfg.py index 758056e..14f2efc 100644 --- a/cli/app/settings/app_cfg.py +++ b/cli/app/settings/app_cfg.py @@ -72,19 +72,15 @@ HASH_BRANCH_SIZE = 3 # for sha256 subdirs try: S3_HTTP_BASE_URL = os.getenv("S3_HTTP_BASE_URL") - DIR_S3_VER = 'v2' - DIR_S3_MODELS = join(DIR_S3_VER, 'models') - S3_HTTP_MODELS_URL = join(S3_HTTP_BASE_URL, DIR_S3_MODELS) except Exception as e: - # LOG.error(f'S3 .env variables not set. Can not access models.') pass # ----------------------------------------------------------------------------- # Exports # ----------------------------------------------------------------------------- -HTTP_EXTERNAL_HOST = os.getenv('HTTP_EXTERNAL_HOST') or "http://0.0.0.0:5000" - +SERVER_NAME = os.getenv('SERVER_NAME') or '0.0.0.0:5000' +HTTP_EXTERNAL_HOST = os.getenv('HTTP_EXTERNAL_HOST') or f"http://{SERVER_NAME}" # ----------------------------------------------------------------------------- # Unicode symbols for logger |
