diff --git a/Dockerfile b/Dockerfile index 22a22a0..a3f7a58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ RUN $JAVA_HOME/bin/jlink \ --strip-debug \ --no-man-pages \ --no-header-files \ - --compress=2 \ + --compress=zip-6 \ --output /optimized-jdk-21 # Second stage, Use the custom JRE and build the app image diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties index fc05de6..3d082fb 100644 --- a/src/main/resources/application-local.properties +++ b/src/main/resources/application-local.properties @@ -8,11 +8,11 @@ server.error.include-stacktrace=never # = LOGGING CONFIGURATION # =============================== logging.level.leonardo=DEBUG -logging.level.org.apache.coyote.http11.Http11Processor=DEBUG # =============================== # = MANAGEMENT CONFIGURATION # =============================== +management.endpoints.web.exposure.include=* management.endpoint.health.show-details=always # =============================== diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 17a7a89..9ed39d8 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -8,7 +8,14 @@ server.error.include-stacktrace=never # = LOGGING CONFIGURATION # =============================== logging.level.leonardo=DEBUG -logging.level.org.apache.coyote.http11.Http11Processor=DEBUG + +# =============================== +# = MONITORING +# =============================== +management.endpoints.web.exposure.include=health +management.endpoint.health.show-details=never +management.health.ssl.enabled=false +management.health.email.enabled=false # =============================== # = DATABASE CONFIGURATION diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 0ae913e..3a051c6 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -18,7 +18,6 @@ logging.file.name=logging_file.log # =============================== management.endpoints.web.exposure.include=* management.endpoint.health.show-details=always -#management.endpoint.health.show-components=always # =============================== # = DATABASE CONFIGURATION @@ -46,9 +45,7 @@ spring.mail.password=${SPRING_MAIL_PASSWORD} spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=true spring.mail.properties.mail.smtp.ssl.trust=smtp.gmail.com -spring.mail.properties.mail.smtp.connectiontimeout=5000 spring.mail.properties.mail.smtp.timeout=5000 -spring.mail.properties.mail.smtp.writetimeout=5000 email.to.send.list=${EMAIL_TO_SEND_LIST} # ===============================