initial commit

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-13 23:24:28 +02:00
commit 4a2466484c
16 changed files with 615 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package dev.mars3142.fhq.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ConfigServiceApplication {
public static void main(String[] args) {
SpringApplication.run(ConfigServiceApplication.class, args);
}
}

View File

@@ -0,0 +1,7 @@
server:
port: 8091
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka

View File

@@ -0,0 +1,41 @@
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://eureka-service.web:8761/eureka
instance:
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
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

View File

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

View File

@@ -0,0 +1,13 @@
package dev.mars3142.fhq.config;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ConfigServiceApplicationTests {
@Test
void contextLoads() {
}
}