initial commit
This commit is contained in:
34
.env.sample
Normal file
34
.env.sample
Normal file
@@ -0,0 +1,34 @@
|
||||
# GITEA CORE CONFIGURATION
|
||||
GITEA_EXTERNAL_URL=https://git.example.com # http://<SERVER_IP_OR_DOMAIN>
|
||||
GITEA_ROOT_USER=admin
|
||||
GITEA_ROOT_PASSWORD=ChangeMe123 # Initial admin password
|
||||
GITEA_ROOT_EMAIL=admin@example.com
|
||||
GITEA_DATA_PATH=./gitea-data # Persisted data directory
|
||||
|
||||
# DATABASE
|
||||
GITEA_DB_TYPE=postgres
|
||||
GITEA_DB_HOST=db:5432
|
||||
GITEA_DB_NAME=gitea
|
||||
GITEA_DB_USER=gitea
|
||||
GITEA_DB_PASSWORD=ChangeDbPass123
|
||||
|
||||
# PORTS
|
||||
HTTP_PORT=3000 # internal Gitea HTTP (inside container)
|
||||
SSH_PORT=2222 # exposed SSH from host -> container
|
||||
|
||||
# SMTP / EMAIL SETTINGS
|
||||
SMTP_ENABLE=false
|
||||
SMTP_HOST=smtp.mailgun.org
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
SMTP_FROM=git@example.com
|
||||
SMTP_SKIP_VERIFY=true
|
||||
|
||||
# OPTIONAL: LETSENCRYPT / REVERSE PROXY (if you mimic GitLab style)
|
||||
LETSENCRYPT_ENABLE=false
|
||||
LETSENCRYPT_EMAIL=admin@example.com
|
||||
|
||||
# OPTIONAL: Custom SSL Configuration
|
||||
SSL_CERT_PATH=/etc/letsencrypt/live/git.example.com/fullchain.pem
|
||||
SSL_KEY_PATH=/etc/letsencrypt/live/git.example.com/privkey.pem
|
||||
Reference in New Issue
Block a user