From 509a6eecb3926b1121ebb42e900862fd26739705 Mon Sep 17 00:00:00 2001 From: yml Date: Wed, 18 Nov 2026 11:52:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(fulfillment):=20=E5=86=85=E7=BD=91=E7=9B=B4?= =?UTF-8?q?=E8=BF=9E=20order=5Fsite=20=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为 live-hub 容器增加 ks.khhao.com 到 order_site 内网 IP 的解析映射 - 通过 ORDER_SITE_INTERNAL_IP 配置内网地址,默认 172.23.3.80 - 保持 HTTPS 域名证书校验,避免使用 IP 证书或公网绕行 --- .env.example | 2 ++ docker-compose.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.env.example b/.env.example index 2e6b764..89b4447 100644 --- a/.env.example +++ b/.env.example @@ -145,6 +145,8 @@ WORKER_SMS_DAILY_LIMIT=10 ORDER_SITE_DATABASE_URL= ORDER_SITE_LOOKUP_ENABLED=false ORDER_SITE_LOOKUP_TIMEOUT_SECONDS=3 +# live-hub 通过该内网地址直连 order_site;TLS 域名仍为 ks.khhao.com +ORDER_SITE_INTERNAL_IP=172.23.3.80 # order_site -> live-hub 直播账号履约服务端集成 PLATFORM_FULFILLMENT_INTEGRATION_KEY= diff --git a/docker-compose.yml b/docker-compose.yml index 9dcd1fb..38886e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,9 @@ services: ports: # 保持现有服务端口;可通过 APP_PORT 覆盖。 - "${APP_PORT:-8000}:8800" + extra_hosts: + # order_site 回调经内网直连,HTTPS 仍使用 ks.khhao.com 的域名证书。 + - "ks.khhao.com:${ORDER_SITE_INTERNAL_IP:-172.23.3.80}" volumes: # 持久化运行时文件和日志,数据库由 mysql-data 卷管理。 - ./data:/app/data