diff --git a/deploy/git-chovy/install.sh b/deploy/git-chovy/install.sh index d9cbe75..3d914f0 100755 --- a/deploy/git-chovy/install.sh +++ b/deploy/git-chovy/install.sh @@ -180,8 +180,9 @@ fj_ini_set actions ENABLED false && FJ_INI_CHANGED=1 fj_ini_set webhook ALLOWED_HOST_LIST external && FJ_INI_CHANGED=1 fj_ini_set migrations ALLOW_LOCALNETWORKS false && FJ_INI_CHANGED=1 fj_ini_set security DISABLE_GIT_HOOKS true && FJ_INI_CHANGED=1 +fj_ini_set repository DISABLE_DOWNLOAD_SOURCE_ARCHIVES true && FJ_INI_CHANGED=1 if [ "$FJ_INI_CHANGED" = 1 ]; then - log "app.ini hardening applied (actions off, webhooks/migrations external-only, git hooks off)" + log "app.ini hardening applied (actions off, webhooks/migrations external-only, git hooks off, source archives off)" fi # ---- 3. branding: chovy's mark as logo + favicon ----------------------------- diff --git a/setup.sh b/setup.sh index 9449c9c..8b68e13 100755 --- a/setup.sh +++ b/setup.sh @@ -1429,6 +1429,11 @@ FJ # on loopback next to the Mailu admin API and other local services, so a # member webhook/migration pointed at 127.0.0.1 would be an SSRF. # - Server-side git hooks stay off (they run as the forgejo user). + # - Source archive downloads (zip/tar.gz) off. Crawlers requested an + # archive of every repo at every commit; Forgejo cached each one under + # data/repo-archive, which reached 11G on 2026-11-30, filled the disk and + # made every BBS/news write fail (NNTP 441 "posting failed"). git clone + # still works. fj_ini_set() { # section key value local section=$1 key=$2 value=$3 tmp tmp=$(mktemp) @@ -1448,8 +1453,9 @@ FJ fj_ini_set webhook ALLOWED_HOST_LIST external && FJ_INI_CHANGED=1 fj_ini_set migrations ALLOW_LOCALNETWORKS false && FJ_INI_CHANGED=1 fj_ini_set security DISABLE_GIT_HOOKS true && FJ_INI_CHANGED=1 + fj_ini_set repository DISABLE_DOWNLOAD_SOURCE_ARCHIVES true && FJ_INI_CHANGED=1 if [ "$FJ_INI_CHANGED" = 1 ]; then - log "forgejo app.ini hardening applied (actions off, webhooks/migrations external-only, git hooks off)" + log "forgejo app.ini hardening applied (actions off, webhooks/migrations external-only, git hooks off, source archives off)" fi fi