From 670d439b35670d3eba358e2748b63add0918ab33 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Mon, 14 Oct 2024 22:51:05 +0200 Subject: [PATCH] new config server settings Signed-off-by: Peter Siegmund --- src/main/resources/application-dev.yaml | 2 +- .../{application.yaml => application.yml} | 0 .../resources/configurations/application.yml | 30 +++++++++++++++++++ .../configurations/timezone-service.yml | 0 4 files changed, 31 insertions(+), 1 deletion(-) rename src/main/resources/{application.yaml => application.yml} (100%) create mode 100644 src/main/resources/configurations/application.yml create mode 100644 src/main/resources/configurations/timezone-service.yml diff --git a/src/main/resources/application-dev.yaml b/src/main/resources/application-dev.yaml index 9d450fd..8c96e48 100644 --- a/src/main/resources/application-dev.yaml +++ b/src/main/resources/application-dev.yaml @@ -1,5 +1,5 @@ server: - port: 8091 + port: 8888 eureka: client: diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yml similarity index 100% rename from src/main/resources/application.yaml rename to src/main/resources/application.yml diff --git a/src/main/resources/configurations/application.yml b/src/main/resources/configurations/application.yml new file mode 100644 index 0000000..7d2d20e --- /dev/null +++ b/src/main/resources/configurations/application.yml @@ -0,0 +1,30 @@ +info: + application: + name: ${spring.application.name} + version: '@project.version@' + spring-cloud-version: '@spring-cloud.version@' + spring-boot-version: '@project.parent.version@' + +server: + port: ${PORT:8080} + shutdown: graceful + error: + include-message: on_param + include-stacktrace: on_param + +management: + endpoint: + health: + probes: + enabled: true + +eureka: + client: + register-with-eureka: true + fetch-registry: true + service-url: + defaultZone: http://eureka-service.web:8761/eureka + +springdoc: + swagger-ui: + path: /swagger-ui.html diff --git a/src/main/resources/configurations/timezone-service.yml b/src/main/resources/configurations/timezone-service.yml new file mode 100644 index 0000000..e69de29