Public Access
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
# ─────────────────────────────────────────────
|
|
# 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"
|
|
|
|
# Registration settings
|
|
auth:
|
|
registration:
|
|
invitation-code: ${AUTH_INVITATION_CODE} |