Public Access
Initial project setup: CI, Docker & configs
Add project bootstrap for build, CI/CD, and local development. Introduces Maven Wrapper (mvnw, mvnw.cmd, .mvn/wrapper), multi-stage Dockerfile, docker-compose files (compose.yaml, docker-compose.dev.yml), .env, banner and README. Adds Gitea Actions workflow to build, test and push container images. Update application.yml (port -> 8090, virtual threads, API versioning, management/actuator/prometheus settings, Steam API config) and add application-dev.yml for local overrides. Extend pom.xml with caching, observability (actuator, micrometer/prometheus), testing/dev dependencies (testcontainers, devtools, additional spring test modules) to support CI and local testing.
This commit is contained in:
1 parent
a2ae667a23
commit
5881dd0613
11 files changed
+800
-12
No files matched your search
@@ -3,35 +3,45 @@ spring:
|
||||
name: tbp-core-service
|
||||
profiles:
|
||||
active: prod
|
||||
datasource:
|
||||
url: jdbc:postgresql://${DB_HOST}:5432/tbp_core
|
||||
username: ${DB_USER}
|
||||
password: ${DB_PASS}
|
||||
jpa:
|
||||
open-in-view: true
|
||||
hibernate:
|
||||
ddl-auto: validate
|
||||
flyway:
|
||||
enabled: true
|
||||
baseline-on-migrate: true
|
||||
locations: classpath:db/migration
|
||||
threads:
|
||||
virtual:
|
||||
enabled: true
|
||||
mvc:
|
||||
apiversion:
|
||||
use:
|
||||
query-parameter: version
|
||||
default: "1.0"
|
||||
supported: 1.0, 2,0
|
||||
|
||||
server:
|
||||
port: 8081
|
||||
port: 8090
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health, prometheus, metrics
|
||||
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
prometheus:
|
||||
metrics:
|
||||
export:
|
||||
enabled: true
|
||||
security:
|
||||
jwt:
|
||||
secret: ${JWT_SECRET}
|
||||
|
||||
app:
|
||||
cors:
|
||||
allowed-origins: "https://tbp.andreas-dahm.eu"
|
||||
|
||||
internal:
|
||||
api-key: ${INTERNAL_API_KEY}
|
||||
steam:
|
||||
api-key: ${STEAM_API_KEY}
|
||||
playerService-url: https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/
|
||||
storeService-url: https://api.steampowered.com/IStoreService/GetAppList/v1/
|
||||
imageService-url: https://cdn.cloudflare.steamstatic.com/steam/apps/
|
||||
Reference in new issue
Block a user