homek8s/apps/base/forgejo/kustomization.yaml
Lance Walters 01db28dec5 apps(forgejo): serve a declarative robots.txt that keeps non-portfolio paths out of the index
Self-registration was open until 2026-11-20 and Google indexed spam
profiles under forgejo.siriusdevops.com (/leonabrewton8, /charlinebrando,
.../-/packages). The accounts are deleted and 404 now, but Forgejo's
built-in robots.txt only blocks /explore/*?* and /user/, so /explore/repos
and /search stay crawlable.

Forgejo serves GITEA_CUSTOM=/data/gitea/public/robots.txt at /robots.txt,
so mount a ConfigMap there (the supported custom-public override) and
disallow /explore/*, /user/*, /search*, /api/*, /*/-/packages while
allowing /sirius/* for the portfolio repos.
2026-11-23 22:50:52 -05:00

25 lines
849 B
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- httproute.yaml
- pvc.yaml
- cluster.yaml
- podmonitor.yaml
- pg-actions-queries.yaml
# Site-root custom assets (robots.txt) mounted into the forgejo pod.
- custom-public.yaml
- deployment.yaml
- service.yaml
- runner-configmap.yaml
# Static PVs/PVCs pinned to rpi: dynamic local-path cannot provision there
# (its helper pod is hardcoded to siriussec). Must sort before the runner
# Deployments that consume the claims.
- runner-dind-storage.yaml
- runner-arm64.yaml
- runner-amd64.yaml
- runner-deploy-arm64.yaml
- prune-cronjob.yaml
# Nightly disaster-recovery backup of forgejo-data + every CNPG database to
# the Linode VPS. Lives here because a PVC cannot be mounted cross-namespace.
- cluster-backup.yaml