new config settings
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -32,6 +32,8 @@ dependencies {
|
|||||||
implementation 'org.springframework.cloud:spring-cloud-config-server'
|
implementation 'org.springframework.cloud:spring-cloud-config-server'
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||||
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
|
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
|
||||||
|
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
|
||||||
|
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
|
||||||
compileOnly 'org.projectlombok:lombok'
|
compileOnly 'org.projectlombok:lombok'
|
||||||
annotationProcessor 'org.projectlombok:lombok'
|
annotationProcessor 'org.projectlombok:lombok'
|
||||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
server:
|
|
||||||
port: 8888
|
|
||||||
|
|
||||||
eureka:
|
|
||||||
client:
|
|
||||||
service-url:
|
|
||||||
defaultZone: http://localhost:8761/eureka
|
|
@@ -1,39 +0,0 @@
|
|||||||
eureka:
|
|
||||||
client:
|
|
||||||
register-with-eureka: true
|
|
||||||
fetch-registry: true
|
|
||||||
service-url:
|
|
||||||
defaultZone: http://eureka-service.web:8761/eureka
|
|
||||||
|
|
||||||
info:
|
|
||||||
application:
|
|
||||||
name: ${spring.application.name}
|
|
||||||
version: '@project.version@'
|
|
||||||
spring-cloud-version: '@spring-cloud.version@'
|
|
||||||
spring-boot-version: '@project.parent.version@'
|
|
||||||
|
|
||||||
management:
|
|
||||||
endpoint:
|
|
||||||
health:
|
|
||||||
probes:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
server:
|
|
||||||
port: ${PORT:8080}
|
|
||||||
shutdown: graceful
|
|
||||||
error:
|
|
||||||
include-message: on_param
|
|
||||||
include-stacktrace: on_param
|
|
||||||
|
|
||||||
sentry:
|
|
||||||
dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528
|
|
||||||
environment: edge-service
|
|
||||||
|
|
||||||
# Set traces_sample_rate to 1.0 to capture 100%
|
|
||||||
# of transactions for tracing.
|
|
||||||
# We recommend adjusting this value in production.
|
|
||||||
tracesSampleRate: 1.0
|
|
||||||
|
|
||||||
spring:
|
|
||||||
application:
|
|
||||||
name: config-service
|
|
17
src/main/resources/bootstrap.yml
Normal file
17
src/main/resources/bootstrap.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
logging:
|
||||||
|
level:
|
||||||
|
com:
|
||||||
|
netflix:
|
||||||
|
discovery: off
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: ${PORT:8888}
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: config-service
|
||||||
|
cloud:
|
||||||
|
config:
|
||||||
|
server:
|
||||||
|
native:
|
||||||
|
search-locations: classpath:/configurations
|
@@ -1,3 +1,10 @@
|
|||||||
|
eureka:
|
||||||
|
client:
|
||||||
|
register-with-eureka: true
|
||||||
|
fetch-registry: true
|
||||||
|
service-url:
|
||||||
|
defaultZone: ${EUREKA-URI:http://localhost:8761/eureka}
|
||||||
|
|
||||||
info:
|
info:
|
||||||
application:
|
application:
|
||||||
name: ${spring.application.name}
|
name: ${spring.application.name}
|
||||||
@@ -5,6 +12,27 @@ info:
|
|||||||
spring-cloud-version: '@spring-cloud.version@'
|
spring-cloud-version: '@spring-cloud.version@'
|
||||||
spring-boot-version: '@project.parent.version@'
|
spring-boot-version: '@project.parent.version@'
|
||||||
|
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
com:
|
||||||
|
netflix:
|
||||||
|
discovery: ERROR
|
||||||
|
|
||||||
|
management:
|
||||||
|
endpoint:
|
||||||
|
health:
|
||||||
|
probes:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
sentry:
|
||||||
|
dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528
|
||||||
|
environment: edge-service
|
||||||
|
|
||||||
|
# Set traces_sample_rate to 1.0 to capture 100%
|
||||||
|
# of transactions for tracing.
|
||||||
|
# We recommend adjusting this value in production.
|
||||||
|
tracesSampleRate: 1.0
|
||||||
|
|
||||||
server:
|
server:
|
||||||
port: ${PORT:8080}
|
port: ${PORT:8080}
|
||||||
shutdown: graceful
|
shutdown: graceful
|
||||||
@@ -12,19 +40,6 @@ server:
|
|||||||
include-message: on_param
|
include-message: on_param
|
||||||
include-stacktrace: 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:
|
springdoc:
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
path: /swagger-ui.html
|
path: /swagger-ui.html
|
||||||
|
Reference in New Issue
Block a user