From 0b84b1ff7a587c203da0d9be1c905af0337dc489 Mon Sep 17 00:00:00 2001 From: Juan Valacco <97040903+jvalacco-dataherald@users.noreply.github.com> Date: Fri, 17 May 2024 12:24:50 -0300 Subject: [PATCH] update engine url env var name --- services/enterprise/.env.example | 2 +- services/enterprise/.test.env | 2 +- services/enterprise/README.md | 4 ++-- services/enterprise/config.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/enterprise/.env.example b/services/enterprise/.env.example index ae046439..b5b02040 100644 --- a/services/enterprise/.env.example +++ b/services/enterprise/.env.example @@ -1,4 +1,4 @@ -K2_CORE_URL=http://{DOCKER_CONTAINER_APP_NAME:PORT}/api/v1 # example: http://dataherald-engine-1/api/v1 (port 80 by default) +ENGINE_URL=http://{DOCKER_CONTAINER_APP_NAME:PORT}/api/v1 # example: http://dataherald-engine-1/api/v1 (port 80 by default) MONGODB_DB_NAME= MONGODB_URI= diff --git a/services/enterprise/.test.env b/services/enterprise/.test.env index 162d2e74..372ebfd4 100644 --- a/services/enterprise/.test.env +++ b/services/enterprise/.test.env @@ -1,4 +1,4 @@ -K2_CORE_URL=http://localhost:80/api/v1 +ENGINE_URL=http://localhost:80/api/v1 MONGODB_DB_NAME=foo MONGODB_URI=foo DEFAULT_K2_TIMEOUT=60 diff --git a/services/enterprise/README.md b/services/enterprise/README.md index b1b011c2..77ee24b3 100644 --- a/services/enterprise/README.md +++ b/services/enterprise/README.md @@ -114,9 +114,9 @@ cp .env.example .env 3. Make sure you use the same `ENCRYPT_KEY` for `server` and `dataherald`. -4. For `K2_CORE_URL` check that you use as host the service name that is specified in docker-composer file, for example: +4. For `ENGINE_URL` check that you use as host the service name that is specified in docker-composer file, for example: ``` -K2_CORE_URL=http://app/api/v1 +ENGINE_URL=http://app/api/v1 ``` 5. Run the containers and execute the initialization script to generate data. It should create a real db_connection, diff --git a/services/enterprise/config.py b/services/enterprise/config.py index f89728b0..03e53198 100644 --- a/services/enterprise/config.py +++ b/services/enterprise/config.py @@ -26,7 +26,7 @@ class Settings(BaseSettings): load_dotenv() - engine_url: str = os.environ.get("K2_CORE_URL") + engine_url: str = os.environ.get("ENGINE_URL") default_engine_timeout: int = os.environ.get("DEFAULT_K2_TIMEOUT") encrypt_key: str = os.environ.get("ENCRYPT_KEY") api_key_salt: str = os.environ.get("API_KEY_SALT")