# ==================== Notification Service 私有配置 ==================== # 多机部署时将此文件放到 notification 服务器的 /etc/topfans/notification.env # 服务端口 PORT=20010 # ==================== 数据库配置 ==================== DB_HOST=localhost DB_PORT=15432 DB_USER=postgres DB_PASSWORD=123456 DB_NAME=top-fans # ==================== 手机推送 (uniPush) ==================== # 是否开启手机通知栏推送;关闭时走 NoopPusher(不发起 HTTP,业务不受影响) # 取值: true / false;默认 true PUSH_ENABLED=true # uniCloud sendMessage 云函数 URL(REQUIRED when PUSH_ENABLED=true) # - 留空 + PUSH_ENABLED=true:启动会 warn 一次,降级为 NoopPusher # - 部署时按环境注入,不要把生产 URL 提交到代码仓库 PUSH_URL=https://env-00jy6bcqqwy6.dev-hz.cloudbasefunction.cn/sendMessage # HTTP 调用超时(毫秒);推荐 3~5s,推送必须异步,超时太短会丢推送 PUSH_TIMEOUT_MS=4000