ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c

View file

@ -0,0 +1,40 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: forge-git
namespace: forgejo-public
spec:
parentRefs:
- name: gateway-relay
namespace: kube-system
sectionName: https
hostnames:
- git.quorate.dev
rules:
- matches:
- path:
type: Exact
value: /robots.txt
filters:
- type: RequestRedirect
requestRedirect:
hostname: quorate.dev
port: 443
statusCode: 301
path:
type: ReplaceFullPath
replaceFullPath: /robots-deny.txt
- type: ResponseHeaderModifier
responseHeaderModifier:
set:
- name: X-Robots-Tag
value: noindex
- filters:
- type: ResponseHeaderModifier
responseHeaderModifier:
set:
- name: X-Robots-Tag
value: noindex
backendRefs:
- name: forge-git-http
port: 3000