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.
This commit is contained in:
parent
79206e0487
commit
01db28dec5
3 changed files with 42 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ resources:
|
|||
- 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue