# Docker 环境配置 - Gateway server: port: ${SERVER_PORT:8000} spring: application: name: fund-gateway profiles: active: ${SPRING_PROFILES_ACTIVE:docker} cloud: nacos: server-addr: ${NACOS_SERVER_ADDR:nacos:8848} username: ${NACOS_USERNAME:nacos} password: ${NACOS_PASSWORD:nacos} discovery: namespace: ${NACOS_NAMESPACE:} group: DEFAULT_GROUP enabled: true gateway: discovery: locator: enabled: true lower-case-service-id: true routes: - id: fund-sys uri: lb://fund-sys predicates: - Path=/api/sys/** filters: - StripPrefix=1 - id: fund-cust uri: lb://fund-cust predicates: - Path=/api/cust/** filters: - StripPrefix=1 - id: fund-proj uri: lb://fund-proj predicates: - Path=/api/proj/** filters: - StripPrefix=1 - id: fund-req uri: lb://fund-req predicates: - Path=/api/req/** filters: - StripPrefix=1 - id: fund-exp uri: lb://fund-exp predicates: - Path=/api/exp/** filters: - StripPrefix=1 - id: fund-receipt uri: lb://fund-receipt predicates: - Path=/api/receipt/** filters: - StripPrefix=1 - id: fund-report uri: lb://fund-report predicates: - Path=/api/report/** filters: - StripPrefix=1 - id: fund-file uri: lb://fund-file predicates: - Path=/api/file/** filters: - StripPrefix=1 # JWT 配置 jwt: secret: YourSecretKeyForJWTTokenGenerationMustBeAtLeast256BitsLong expiration: 86400000 # Actuator 监控端点配置 management: endpoints: web: exposure: include: health,info,metrics,prometheus base-path: /actuator endpoint: health: show-details: always probes: enabled: true health: livenessstate: enabled: true readinessstate: enabled: true metrics: tags: application: ${spring.application.name} distribution: percentiles-histogram: http.server.requests: true percentiles: http.server.requests: 0.5,0.95,0.99 # 日志配置 logging: level: root: INFO com.fundplatform: DEBUG pattern: console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%X{traceId}] %-5level %logger{36} - %msg%n"