Skip to content

Commit

Permalink
update engine url env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Valacco committed May 17, 2024
1 parent c10acb8 commit 0b84b1f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion services/enterprise/.env.example
Original file line number Diff line number Diff line change
@@ -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=

Expand Down
2 changes: 1 addition & 1 deletion services/enterprise/.test.env
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions services/enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion services/enterprise/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0b84b1f

Please sign in to comment.