feat(deploy): 在同一台机器上接入继续教育和 Dify

4 核 8G 同时跑协会站点、PlayEdu 和估价智能体,并让门户专家页底色透出页面背景。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-23 14:12:18 +08:00
1 parent 1b33361209
commit a8e2e741d1
24 files changed
+1035 -85

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ if [[ -z "${CERTBOT_EMAIL:-}" ]]; then
exit 1
fi
mkdir -p certs certbot
domains=(-d "$SITE_DOMAIN" -d "$FILES_DOMAIN")
domains=(-d "$SITE_DOMAIN" -d "$FILES_DOMAIN" -d "$AI_DOMAIN" -d "$EDU_DOMAIN" -d "$EDU_H5_DOMAIN" -d "$EDU_ADMIN_DOMAIN")
apex="${SITE_DOMAIN#www.}"
if [[ "$apex" != "$SITE_DOMAIN" ]]; then
domains+=(-d "$apex")
@@ -26,4 +26,4 @@ docker run --rm \
certbot/certbot certonly --webroot -w /var/www/certbot \
--email "$CERTBOT_EMAIL" --agree-tos --no-eff-email \
"${domains[@]}"
echo "证书已写入 certs/live/${SITE_DOMAIN}/ 。接着修改 .env 里的站点地址为 https,再执行 ./render-nginx.sh && docker compose up -d"
echo "证书已写入 certs/live/${SITE_DOMAIN}/ 。接着把 .env 里的站点地址和 DIFY_PUBLIC_URL 改成 https,dify/docker/.env 里的 CONSOLE_WEB_URL、APP_WEB_URL、GSREA_SSO_CONSOLE_WEB_URL 改成 https,NEXT_PUBLIC_SOCKET_URL 改成 wss,再执行 ./render-nginx.sh && ./up.sh --yes"