# 复制为 .env,放在 1Panel 编排工作目录(可与 compose 同目录) # 服务器只需:本 .env + compose yaml + 数据目录,不要源码 # ---------- 镜像(改程序 = 本机重新 push,服务器 pull 新 tag)---------- GATEWAY_IMAGE=ghcr.io/kadxy/weixin-ilink-gateway:latest # 换成你的仓库,例如 docker.io/你的用户名/record-bot:latest RECORD_BOT_IMAGE=docker.io/YOUR_DOCKERHUB_USER/record-bot:latest # ---------- 密钥 ---------- GATEWAY_API_KEY=change-me # ---------- 端口 ---------- GATEWAY_PORT=29527 RECORD_BOT_PORT=5080 # ---------- 数据(绝对路径更稳,如 /opt/wechatbot/data/...)---------- GATEWAY_DATA_DIR=./data/gateway RECORD_DATA_DIR=./data/record-bot # ---------- 互相访问(分开部署、同一 Docker 网络 wechatbot 时)---------- WEBHOOK_URLS=http://record-bot:8080/webhook/weixin GATEWAY_BASE_URL=http://weixin-ilink-gateway:3000 # 若两个编排不在同一网络,改用宿主机端口,例如: # WEBHOOK_URLS=http://host.docker.internal:5080/webhook/weixin # GATEWAY_BASE_URL=http://host.docker.internal:29527 DOCKER_NETWORK=wechatbot RECORD_WEBHOOK_TOKEN= GATEWAY_WEBHOOK_TOKEN= MAX_DOWNLOAD_SIZE_MB=128 LLM_ENABLED=true LLM_API_KEY= LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 LLM_MODEL=qwen3.8-max