# QAUP 生产环境配置
server:
  port: 8080

# 数据库配置
spring:
  datasource:
    url: jdbc:postgresql://qaup-postgres:5432/qaup
    username: postgres
    password: 123456
    driver-class-name: org.postgresql.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      initial-size: 5
      min-idle: 5
      max-active: 20
      max-wait: 60000
      validation-query: SELECT 1
      test-while-idle: true
  
  # Redis配置
  data:
    redis:
      host: qaup-redis
      port: 6379
      database: 0
      timeout: 10s

  # JPA配置
  jpa:
    hibernate:
      ddl-auto: none
    show-sql: false

# 应用配置
qaup:
  name: QAUP
  version: 1.0.1
  profile: /app/uploads
  # 外部接口配置（客户可修改）
  external:
    airport-api:
      base-url: http://192.168.1.100:8090
      username: dianxin
      password: dianxin@123
    vehicle-api:
      base-url: http://192.168.1.100:8090

# 日志配置
logging:
  level:
    com.qaup: info
    org.springframework: warn
  pattern:
    console: "%d{HH:mm:ss} %-5level %logger{36} - %msg%n"

# 数据采集配置
data:
  collector:
    interval: 250
    detection:
      interval: 1000

# 坐标系统配置
coordinate-system:
  airport:
    center-longitude: 120.0834104
    center-latitude: 36.35406879