Added lots of new stuff

- extended the jwt and put userid into it
- completed update settings
- added settings also in me call
This commit is contained in:
lobo committed 2026-04-11 12:07:27 +02:00
1 parent 6e194b9c9a
commit 03d5a011ae
23 files changed
+271 -30

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
# ─────────────────────────────────────────────
# BASE CONFIGURATION (Production Defaults)
# ─────────────────────────────────────────────
spring:
application:
name: tbp-auth-service
profiles:
active: prod # Default profile for local startup
jpa:
open-in-view: true
flyway:
# Force Flyway to be enabled
enabled: true
# Create the schema history table if it does not exist
baseline-on-migrate: true
# Explicitly state where to look for scripts
locations: classpath:db/migration
threads:
virtual:
enabled: true
mvc:
apiversion:
use:
query-parameter: version
default: "1.0"
supported: 1.0, 2,0
# Actuator & Micrometer Settings
management:
endpoints:
web:
exposure:
# Expose health and metrics to the web
include: health, prometheus, metrics
endpoint:
health:
show-details: always
prometheus:
metrics:
export:
enabled: true
# Security stuff
security:
jwt:
secret: ${JWT_SECRET}
# Custom properties for CORS
app:
cors:
# Production default: strictly allow only the frontend domain
allowed-origins: "https://tbp.andreas-dahm.eu"