feat: Caddy 监听端口可配置 — CADDY_HTTP_PORT/CADDY_HTTPS_PORT
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -45,7 +45,11 @@ ENABLE_BACKGROUND_THINKING=true
|
||||
# ========== Webhook(可选) ==========
|
||||
WEBHOOK_API_KEY=
|
||||
|
||||
# ========== 反向代理端口(避免与已有 nginx 等服务冲突) ==========
|
||||
CADDY_HTTP_PORT=80
|
||||
CADDY_HTTPS_PORT=443
|
||||
|
||||
# ========== 域名与 HTTPS(有域名时填写) ==========
|
||||
# 留空 = 仅 HTTP (:80);填写域名后 Caddy 自动申请 Let's Encrypt 证书
|
||||
# 留空 = 仅 HTTP;填写域名后 Caddy 自动申请 Let's Encrypt 证书
|
||||
DOMAIN=
|
||||
ACME_EMAIL=admin@example.com
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@ services:
|
||||
container_name: cyrene_caddy
|
||||
image: caddy:2-alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "${CADDY_HTTP_PORT:-80}:80"
|
||||
- "${CADDY_HTTPS_PORT:-443}:443"
|
||||
environment:
|
||||
DOMAIN: ${DOMAIN:-}
|
||||
ACME_EMAIL: ${ACME_EMAIL:-admin@localhost}
|
||||
|
||||
Reference in New Issue
Block a user