-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
30 lines (21 loc) · 1.45 KB
/
Copy pathexample.env
File metadata and controls
30 lines (21 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Gitea — Self-Hosted Git Service
# Copy this file to .env and fill in your values.
# NEVER commit .env to version control — it contains secrets.
# ─── Secrets ──────────────────────────────────────────────────────────────────
# PostgreSQL password for the gitea database user
GITEA_DB_PASSWORD=your_strong_database_password_here
# Secret key for cookie encryption — generate with: openssl rand -hex 32
GITEA_SECRET_KEY=your_secret_key_here
# Internal API token — generate with: gitea generate secret INTERNAL_TOKEN
# or: openssl rand -hex 64
GITEA_INTERNAL_TOKEN=your_internal_token_here
# ─── Server ───────────────────────────────────────────────────────────────────
# Hostname Traefik will route to Gitea (web UI & git over HTTPS)
GITEA_DOMAIN=gitea.yourdomain.com
# Host port for SSH git operations (git@yourdomain.com:user/repo.git)
# Port 22 is usually taken by the host; 2222 is the conventional alternative.
GITEA_SSH_PORT=2222
# ─── User mapping ─────────────────────────────────────────────────────────────
PUID=3001
PGID=3001
TZ=America/New_York