From eee2336774661dc073f96c2237a66ba6d666722b Mon Sep 17 00:00:00 2001 From: utas-raymondng Date: Mon, 4 Mar 2024 14:22:38 +1100 Subject: [PATCH 1/2] Change param --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1d728359..7bcbe56d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM amazoncorretto:17 - +# Need to take node on the X-APi-KEY environment varibale WORKDIR /app COPY ./target/es-indexer-*.jar /app/app.jar From 06fb74caec470d90722edb91245cf1805babccc5 Mon Sep 17 00:00:00 2001 From: utas-raymondng Date: Mon, 4 Mar 2024 14:48:20 +1100 Subject: [PATCH 2/2] Make index key a env param --- src/main/resources/application-dev.yaml | 5 ----- src/main/resources/application.yaml | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application-dev.yaml b/src/main/resources/application-dev.yaml index 1d72891f..bf5d3429 100644 --- a/src/main/resources/application-dev.yaml +++ b/src/main/resources/application-dev.yaml @@ -1,8 +1,3 @@ -# Client calling the Indexer API must provide this token in the Authorization header -app: - http: - authToken: sample-auth-token - server: port: 8081 diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index f93687fd..2938ba8d 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -9,9 +9,12 @@ server: port: 8080 error: include-stacktrace: never + +# Client calling the Indexer API must provide this token in the Authorization header app: http: auth-token-header-name: X-API-Key + authToken: ${INDEXER_APIKEY:sample-auth-token} management: health: