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 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: