Files
ToBePlayed-Core/src/main/resources/application.yml
T
lobo a1b11882de Add Steam API client, service, controller
Introduce Steam integration: add SteamClientConfig (RestClient bean), SteamApiService (calls GetPlayerSummaries and returns a Player DTO), SteamPlayerSummaryResponse DTO, and SteamTestController (/api/steam/test/{steamId}) for quick testing. Update SecurityConfig to permit the test endpoint and adjust the SecurityFilterChain bean signature. Add Steam API settings: base-url in application.yml and a dev API key in application-dev.yml. Includes basic error logging and optional response handling when no player is found.
2026-04-19 11:38:31 +02:00

48 lines
1.0 KiB
YAML

spring:
application:
name: tbp-core-service
profiles:
active: prod
jpa:
open-in-view: true
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: 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"
steam:
api-key: ${STEAM_API_KEY}
base-url: https://api.steampowered.com
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/