fitpub/src/main/resources/application-dev.yml
2026-01-15 10:59:34 +01:00

62 lines
1.9 KiB
YAML

# Development profile configuration
# Activated with: mvn spring-boot:run -Dspring-boot.run.profiles=dev
spring:
datasource:
# For dev: Start PostgreSQL with: docker run -d --name fitpub-postgres -p 5432:5432 -e POSTGRES_DB=fitpub -e POSTGRES_USER=fitpub -e POSTGRES_PASSWORD=change_me_in_production postgis/postgis:16-3.4
url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/fitpub}
username: ${SPRING_DATASOURCE_USERNAME:fitpub}
password: ${SPRING_DATASOURCE_PASSWORD:change_me_in_production}
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: validate # Use Flyway for schema management, even in dev
show-sql: true # Show SQL queries in console
properties:
hibernate:
format_sql: true # Format SQL for readability
use_sql_comments: true # Add comments to SQL
flyway:
enabled: true # Use Flyway for migrations
baseline-on-migrate: true
locations: classpath:db/migration
# Development-specific FitPub configuration
fitpub:
domain: ${FITPUB_DOMAIN:localhost:8080}
base-url: ${FITPUB_BASE_URL:http://localhost:8080}
activitypub:
enabled: true
max-federation-retries: 3
request-timeout-seconds: 30
security:
jwt:
# Use a default secret for development (override with env var for security)
secret: ${JWT_SECRET:dev-secret-key-change-in-production-must-be-at-least-32-characters-long}
expiration: 86400000 # 24 hours
storage:
fit-files:
enabled: true
retention-days: 365
# Logging - verbose in development
logging:
level:
root: INFO
net.javahippie.fitpub: DEBUG
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
org.springframework.security: DEBUG
org.springframework.web: DEBUG
# Server configuration
server:
port: ${PORT:8080}
error:
include-message: always
include-binding-errors: always
include-stacktrace: always # Show stack traces in dev mode