diff --git a/stacks/forgejo/main.tf b/stacks/forgejo/main.tf index 6a6ef3f9..fe5db970 100644 --- a/stacks/forgejo/main.tf +++ b/stacks/forgejo/main.tf @@ -141,6 +141,16 @@ resource "kubernetes_deployment" "forgejo" { name = "FORGEJO__packages__ENABLED" value = "true" } + # Disable source archive ZIP/TAR generation. Bots crawling + # ///archive/.zip on dot_files (and similar + # vim-plugin trees) caused 9.9s 500s and chewed ~440m sustained + # CPU. Git clone / OCI registry / API are unaffected — only + # /archive/* URLs return 404 now. Toggle back to "false" if a + # legitimate consumer needs source ZIPs. + env { + name = "FORGEJO__repository__DISABLE_DOWNLOAD_SOURCE_ARCHIVES" + value = "true" + } volume_mount { name = "data" mount_path = "/data"