# Copy to .env (./kit.sh init does it for you) and edit. .env is git-ignored. # How to run: "docker" (docker compose, official image) or "binary" (official binary, no Docker). KIT_MODE=docker APP_NAME="My Gitea" # Public hostname and URL (what people type in the browser). Trailing slash required. DOMAIN=localhost ROOT_URL=http://localhost:3000/ HTTP_PORT=3000 # Docker: host interface the port is published on. 127.0.0.1 = only reachable through your proxy/tunnel. BIND_ADDR=127.0.0.1 # Set to true when ROOT_URL is https. COOKIE_SECURE=false # Sign-up policy DISABLE_REGISTRATION=false MAX_REPOS_PER_USER=10 REGISTER_EMAIL_CONFIRM=false MAILER_ENABLED=false # First admin (created by ./kit.sh setup). Leave ADMIN_PASSWORD empty to generate one # (saved to secrets/admin.password, mode 0600). ADMIN_USER=admin ADMIN_EMAIL=admin@example.com ADMIN_PASSWORD= # Default branch protection applied by ./kit.sh protect / protect-all. PROTECT_BRANCH=main # Approvals needed to merge a PR (0 lets a solo admin merge their own PRs; 1+ for teams). REQUIRED_APPROVALS=0 # Binary mode only: where Gitea keeps its data and config. GITEA_HOME=/var/lib/gitea GITEA_CONF=/etc/gitea/app.ini