Files
gitlab-deployment/.env.sample
2026-03-16 02:43:58 +08:00

41 lines
1.4 KiB
Plaintext

# ==========================================
# GITLAB CORE CONFIGURATION
# ==========================================
GITLAB_EXTERNAL_URL=https://git.example.com # http://<SERVER_IP_OR_DOMAIN>
GITLAB_ROOT_PASSWORD=F3&o5@K0 # Initial root password (Min 8 chars)
GITLAB_ROOT_EMAIL=admin@example.com
GITLAB_HOME=./gitlab-data # Persisted data directory
LETSENCRYPT_ENABLE=false # Set to true if using https without a reverse proxy
# ==========================================
# PORTS
# ==========================================
HTTP_PORT=80
HTTPS_PORT=443
SSH_PORT=2224
# ==========================================
# SMTP / EMAIL SETTINGS (Required for production)
# ==========================================
SMTP_ADDRESS=smtp.mailgun.org
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_DOMAIN=
SMTP_FROM=
# ==========================================
# MONITORING (Prometheus, Exporters)
# ==========================================
GITLAB_MONITORING_ENABLE=false # Set to 'false' to save ~1GB-1.5GB of RAM on smaller servers
# ==========================================
# HIGH PERFORMANCE TUNING
# NOTE: Run auto-tune.sh to optimize these for your hardware
# ==========================================
PUMA_WORKERS=2
PUMA_THREADS=4
SIDEKIQ_CONCURRENCY=10
POSTGRES_SHARED_BUFFERS=256
POSTGRES_WORKERS=2