40 lines
1,001 B
YAML
40 lines
1,001 B
YAML
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
|