Skip to content

Commit

Permalink
docs: Update default MetadataURI env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Woynert committed Sep 27, 2023
1 parent 901daae commit a0e1452
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/gateway/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit a0e1452

Please sign in to comment.