server:
  port: ${SERVER_PORT:8080}
  error:
    include-message: always

spring:
  application:
    name: polskalokalnie-backend
  datasource:
    url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/polskalokalnie}
    username: ${SPRING_DATASOURCE_USERNAME:polskalokalnie}
    password: ${SPRING_DATASOURCE_PASSWORD:polskalokalnie_dev}
  jpa:
    hibernate:
      ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO:update}
    open-in-view: false
    properties:
      hibernate:
        format_sql: true

app:
  jwt:
    # W produkcji ustaw APP_JWT_SECRET (min. 32 znaki) przez zmienna srodowiskowa.
    secret: ${APP_JWT_SECRET:local-dev-secret-change-me-please-32chars-min}
    expiration-seconds: ${APP_JWT_EXPIRATION_SECONDS:86400}
  admin:
    email: ${APP_ADMIN_EMAIL:admin@mieszko.pl}
    password: ${APP_ADMIN_PASSWORD:Admin123!}
    name: ${APP_ADMIN_NAME:Administrator Mieszko}
