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

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}

View File

@@ -0,0 +1,8 @@
,------. ,--. ,---. ,--.
| .---' ,-| | ,---. ,---. ,-----.' .-' ,---. ,--.--.,--. ,--.`--' ,---. ,---.
| `--, ' .-. || .-. || .-. :'-----'`. `-.| .-. :| .--' \ `' / ,--.| .--'| .-. :
| `---.\ `-' |' '-' '\ --. .-' \ --.| | \ / | |\ `--.\ --.
`------' `---' .`- / `----' `-----' `----'`--' `--' `--' `---' `----'
`---'
${application.title} ${application.version}
Powered by Spring Boot ${spring-boot.version}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<!-- use Spring default values -->
<appender class="ch.qos.logback.core.ConsoleAppender" name="Console">
<encoder>
<charset>utf8</charset>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder>
</appender>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<!-- LOG everything at INFO level -->
<logger additivity="false" level="debug" name="dev.mars3142">
<appender-ref ref="Console"/>
</logger>
<!-- LOG "dev.mars3142.*" at DEBUG level -->
<root level="info">
<appender-ref ref="Console"/>
</root>
</configuration>