Files
xk-hy-forward-go/.env.example
2026-05-28 17:04:29 +08:00

26 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 监听地址(内网机,供外网 transit-go 访问)
LISTEN_ADDR=:16001
# 是否真正转发到政务云true/1/yes默认false/0/no 时仅回显将要转发的请求头与请求体给 transit-go
ENABLE_FORWARD=true
# 通道一业务监管数据上报28212
SUPERVISE_TARGET_URL=https://59.202.52.129:28212/province/supervise/data
# 通道二:处方 PDF 文件上传28211
FILE_TARGET_URL=https://59.202.52.129:28211/mng/file/auth/upload
# 兼容旧配置:仅当未设置 SUPERVISE_TARGET_URL 时生效
# TARGET_URL=https://59.202.52.129:28212/province/supervise/data
# 逗号分隔允许来源 IP空表示不限制生产建议填 transit 外网机出口 IP示例192.168.1.20
ALLOW_IPS=192.168.1.20
# 与 transit-go FORWARD_SHARED_SECRET 一致;非空时要求 Header X-Forward-Token
# FORWARD_SHARED_SECRET=change-me-in-production
# 应用日志根目录(默认 {程序目录}/../log/forward/
# LOG_DIR=D:\worker\code\log
# API 请求明细(无需配置):{程序目录}/api-logs/{YYYY-mm-dd HH}/ 每请求一个 .log含完整请求/响应(不脱敏)