Files
gitea/.env.example

34 lines
782 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Gitea 版本
GITEA_VERSION=1.25.4
# 端口配置
HTTP_PORT=3000
SSH_PORT=2222
# 时区
TZ=Asia/Shanghai
# SSH 端口配置(告知 Gitea 对外 SSH 端口,用于 clone 地址显示)
GITEA__server__SSH_PORT=${SSH_PORT}
# Git LFS 配置
GITEA__lfs__START_SERVER=true
GITEA__lfs__PATH=/data/git/lfs
# 禁用公开注册(仅管理员可创建账号)
GITEA__service__DISABLE_REGISTRATION=true
# PostgreSQL 配置
POSTGRES_VERSION=16-alpine
POSTGRES_DB=gitea
POSTGRES_USER=gitea
POSTGRES_PASSWORD=changeme
# 域名配置
DOMAIN=git.example.com
# ROOT_URL决定 Gitea UI 中的链接生成
# 不使用 Caddy仅 HTTPROOT_URL=http://${DOMAIN}:${HTTP_PORT}/
# 使用 CaddyHTTP + HTTPSROOT_URL=https://${DOMAIN}/
ROOT_URL=http://${DOMAIN}:${HTTP_PORT}/