diff --git a/pom.xml b/pom.xml index 7363188..57993b2 100644 --- a/pom.xml +++ b/pom.xml @@ -28,6 +28,7 @@ 17 + 2025.0.0 @@ -84,8 +85,24 @@ org.springframework.boot spring-boot-starter-actuator + + org.springframework.cloud + spring-cloud-starter-config + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 916028f..64df9c4 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,17 +1,4 @@ -pledge.params.from=${EMAIL_FROM:m.ryabyh@gmail.com} -pledge.params.token=${EMAIL_TOKEN} -pledge.params.to=${EMAIL_TO:m.ryabyh@gmail.com,AAAtapina@sberbank.ru,Oreshkina.V.V@sberbank.ru,MEvRyabykh@sberbank.ru} -pledge.params.days=${EMAIL_DAYS:1} -pledge.params.special-email=${SPECIAL_EMAIL:m.ryabyh+torgi@gmail.com} -pledge.params.enable-email-scan=${ENABLE_EMAIL_SCAN:false} -spring.datasource.url=${DB_URL:jdbc:postgresql://localhost:5432/torgi} -spring.datasource.username=${DB_USERNAME:torgi} -spring.datasource.password=${DB_PASSWORD} -spring.datasource.driver-class-name=org.postgresql.Driver -spring.servlet.multipart.max-file-size=20MB -spring.servlet.multipart.max-request-size=20MB -server.tomcat.connection-timeout=300000 -server.tomcat.keep-alive-timeout=300000 -server.connection-timeout=300000 -management.endpoints.web.exposure.include=health,metrics,prometheus -management.endpoint.health.show-details=always \ No newline at end of file +spring.application.name=torgi +spring.config.import=configserver:http://192.168.2.22:10022 +spring.cloud.config.fail-fast=true +spring.cloud.config.profile=dev \ No newline at end of file