support HTTP-only and Caddy (HTTP+HTTPS) modes via compose profiles
This commit is contained in:
@@ -18,5 +18,10 @@ GITEA__lfs__PATH=/data/git/lfs
|
||||
# 禁用公开注册(仅管理员可创建账号)
|
||||
GITEA__service__DISABLE_REGISTRATION=true
|
||||
|
||||
# 域名配置(Caddy 反向代理 + 自动 HTTPS)
|
||||
# 域名配置
|
||||
DOMAIN=git.example.com
|
||||
|
||||
# ROOT_URL:决定 Gitea UI 中的链接生成
|
||||
# 不使用 Caddy(仅 HTTP):ROOT_URL=http://${DOMAIN}:${HTTP_PORT}/
|
||||
# 使用 Caddy(HTTP + HTTPS):ROOT_URL=https://${DOMAIN}/
|
||||
ROOT_URL=http://${DOMAIN}:${HTTP_PORT}/
|
||||
|
||||
Reference in New Issue
Block a user