From a0e145234f2798d9c539a5a35d84729f943f3795 Mon Sep 17 00:00:00 2001 From: woynert Date: Wed, 27 Sep 2023 12:34:23 -0500 Subject: [PATCH] docs: Update default MetadataURI env var --- CLI.md | 12 ++++++------ README.md | 3 --- app/src/main/java/gateway/config/Config.java | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/CLI.md b/CLI.md index 0abe013..e7d69ad 100644 --- a/CLI.md +++ b/CLI.md @@ -4,9 +4,9 @@ This document describes how to use the service as a CLI tool. ## Environment variables -| Variable | Description | Example | -|--------------------------|-----------------------------|-------------------------| -| `AUTHENTICATION_BASEURL` | Authentication service host | `http://127.0.0.1:8081` | -| `METADATA_BASEURL` | Metadata service host | `http://127.0.0.1:8082` | -| `WORKER_HOST` | Worker service host | `127.0.0.1` | -| `WORKER_PORT` | Worker service RMI port | `1099` | +| Variable | Description | Example | +|--------------------------|-----------------------------|--------------------------------| +| `AUTHENTICATION_BASEURL` | Authentication service host | `http://127.0.0.1:8081/api/v1` | +| `METADATA_BASEURL` | Metadata service host | `http://127.0.0.1:8082` | +| `WORKER_HOST` | Worker service host | `127.0.0.1` | +| `WORKER_PORT` | Worker service RMI port | `1099` | diff --git a/README.md b/README.md index eca8d98..8715b06 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,6 @@ app/build/reports/tests/test/index.html # general app/build/reports/jacoco/testCodeCoverageReport/html/index.html # coverage ``` - - - ### Format You need to have `clang-format` installed. diff --git a/app/src/main/java/gateway/config/Config.java b/app/src/main/java/gateway/config/Config.java index c09b765..59b07e7 100644 --- a/app/src/main/java/gateway/config/Config.java +++ b/app/src/main/java/gateway/config/Config.java @@ -26,7 +26,7 @@ public static void initializeFromEnv () authBaseUrl = System.getenv ().getOrDefault ("AUTHENTICATION_BASEURL", "http://127.0.0.1:8081"); metadataBaseUrl = - System.getenv ().getOrDefault ("METADATA_BASEURL", "http://127.0.0.1:8082"); + System.getenv ().getOrDefault ("METADATA_BASEURL", "http://127.0.0.1:8082/api/v1"); workerHost = System.getenv ().getOrDefault ("WORKER_HOST", "127.0.0.1"); workerPort = Integer.parseInt (System.getenv ().getOrDefault ("WORKER_PORT", "1099")); }