initial commit

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-08-18 00:16:34 +02:00
commit 52c64f5d5d
17 changed files with 672 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
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
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
routes:
- id: timezone-service
uri: ${TIMEZONE_SERVICE_URI:http://timezone-service}
predicates:
- Path=/v1/timezone
- Path=/v1/timezone/**
filters:
- name: GCPGatewayFilter
args:
audience: ${TIMEZONE_SERVICE_URI:http://timezone-service}
- id: backend-service
uri: ${BACKEND_SERVICE_URI:http://backend-service}
predicates:
- Path=/v1/**
filters:
#- AuthGatewayFilter
- name: GCPGatewayFilter
args:
audience: ${BACKEND_SERVICE_URI:http://backend-service}