gitea: trust only Caddy as proxy, argon2 hashes, private emails by default, no password Basic auth

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-27 13:19:18 -07:00
1 parent 9696c0e441
commit d24b6c3bac
1 file changed
+9
@@ -20,6 +20,15 @@ services:
- GITEA__openid__ENABLE_OPENID_SIGNUP=false - GITEA__openid__ENABLE_OPENID_SIGNUP=false
# v28 deletes Actions runs older than 400 days by default; keep them all # v28 deletes Actions runs older than 400 days by default; keep them all
- GITEA__actions__RUN_RETENTION_DAYS=0 - GITEA__actions__RUN_RETENTION_DAYS=0
# Only Caddy may set X-Forwarded-For (was "*")
- GITEA__security__REVERSE_PROXY_TRUSTED_PROXIES={{ docker.hairpin_ip }}/32
# Rehashed to argon2 at each user's next password login
- GITEA__security__PASSWORD_HASH_ALGO=argon2
# New accounts hide their email address
- GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE=true
# No HTTP Basic auth with account passwords. Tokens (PATs, OAuth,
# Actions job tokens) sent via Basic auth still work.
- GITEA__service__ENABLE_BASIC_AUTHENTICATION=false
restart: unless-stopped restart: unless-stopped
labels: labels:
mag37.dockcheck.update: true mag37.dockcheck.update: true