use of external settings
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
server:
|
||||
port: 8090
|
||||
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://localhost:8761/eureka
|
||||
|
||||
logging:
|
||||
level:
|
||||
org:
|
||||
springframework:
|
||||
cloud:
|
||||
gateway: TRACE
|
@@ -1,85 +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: edge-service
|
||||
cloud:
|
||||
gateway:
|
||||
default-filters:
|
||||
- name: Retry
|
||||
args:
|
||||
retries: 3
|
||||
methods: GET
|
||||
series: SERVER_ERROR
|
||||
exceptions: java.io.IOException, java.util.concurrent.TimeoutException
|
||||
backoff:
|
||||
firstBackoff: 50ms
|
||||
maxBackoff: 5000ms
|
||||
discovery:
|
||||
locator:
|
||||
enabled: false
|
||||
routes:
|
||||
- id: edge
|
||||
uri: lb://edge-service
|
||||
predicates:
|
||||
- Path=/v3/api-docs/**
|
||||
filters:
|
||||
- RewritePath=/v3/api-docs/(?<path>.*), /$\{path}/v3/api-docs
|
||||
|
||||
- id: timezone-service
|
||||
uri: lb://timezone-service
|
||||
predicates:
|
||||
- Path=/v1/timezone/**, /health/timezone, /timezone/v3/api-docs
|
||||
filters:
|
||||
- RewritePath=/health/timezone, /actuator/health
|
||||
- RewritePath=/timezone/(?<segment>.*), /$\{segment}
|
||||
|
||||
- id: google-service
|
||||
uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080}
|
||||
predicates:
|
||||
- Path=/v1/account/**, /health/google, /google/v3/api-docs
|
||||
filters:
|
||||
- RewritePath=/health/google, /actuator/health
|
||||
- RewritePath=/google/(?<segment>.*), /$\{segment}
|
||||
|
||||
- id: token-service
|
||||
uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080}
|
||||
predicates:
|
||||
- Path=/v1/token/**, /health/backend, /token/v3/api-docs
|
||||
filters:
|
||||
- RewritePath=/health/backend, /actuator/health
|
||||
- RewritePath=/token/(?<segment>.*), /$\{segment}
|
15
src/main/resources/bootstrap.yml
Normal file
15
src/main/resources/bootstrap.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
eureka:
|
||||
client:
|
||||
register-with-eureka: true
|
||||
fetch-registry: true
|
||||
service-url:
|
||||
defaultZone: ${EUREKA-URI:http://localhost:8761/eureka}
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: edge-service
|
||||
cloud:
|
||||
config:
|
||||
discovery:
|
||||
enabled: true
|
||||
serviceId: config-service
|
Reference in New Issue
Block a user