# 部署环境（生产/预发）：请通过环境变量注入连接信息与密钥，勿把真实密码写进仓库
server:
  port: ${SERVER_HTTP_PORT:8080}

spring:
  data:
    mongodb:
      uri: ${MONGODB_URI:mongodb://127.0.0.1:27017/demo_comm}
    redis:
      host: ${REDIS_HOST:127.0.0.1}
      port: ${REDIS_PORT:6379}
      password: ${REDIS_PASSWORD:}
      username: ${REDIS_USERNAME:}

game:
  client-tcp:
    port: ${GAME_CLIENT_TCP_PORT:9091}

cross:
  host: ${CROSS_HOST:127.0.0.1}
  port: ${CROSS_TCP_PORT:9200}
  server-id: ${ZONE_SERVER_ID:zone-1}
  token: ${CROSS_LINK_TOKEN:}
  heartbeat-interval-ms: ${CROSS_HEARTBEAT_INTERVAL_MS:15000}

app:
  logging:
    dir: ${APP_LOG_DIR:/var/log/comm-framework/server}
