From 00935dbb937a59a090a1e4254299d2955cb784bf Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 18 Feb 2024 16:14:56 -0800 Subject: [PATCH] Improve docker image. --- wise-api/Dockerfile | 6 ++++-- wise-api/src/main/resources/application.yml | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/wise-api/Dockerfile b/wise-api/Dockerfile index db706678..47f86cb7 100644 --- a/wise-api/Dockerfile +++ b/wise-api/Dockerfile @@ -1,5 +1,7 @@ FROM amazoncorretto:17.0.10 +LABEL maintainer="Paulo Gustavo Veiga " VOLUME /tmp -COPY target/wisemapping-api.jar app.jar -ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /app.jar ${0} ${@}"] \ No newline at end of file +COPY target/wisemapping-api.jar wisemapping-api.jar + +ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /wisemapping-api.jar ${0} ${@}"] \ No newline at end of file diff --git a/wise-api/src/main/resources/application.yml b/wise-api/src/main/resources/application.yml index 32d629d5..216cded9 100644 --- a/wise-api/src/main/resources/application.yml +++ b/wise-api/src/main/resources/application.yml @@ -1,4 +1,8 @@ # SpringBoot Configuration ... +server: + tomcat: + remote-ip-header: x-forwarded-for + protocol-header: x-forwarded-proto spring: mail: @@ -71,7 +75,7 @@ app: # Redirect to this url, this url must be configured in the google app {baseurl}/c/registration-google #security.oauth2.google.callbackUrl= security: -# corsAllowedOrigins: https://dev.wisemapping.com + # corsAllowedOrigins: https://dev.wisemapping.com oauth2: google: confirmUrl: https://oauth2.googleapis.com/token