ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
40
vendor/workloads/forgejo-public/route-git.yaml
vendored
Normal file
40
vendor/workloads/forgejo-public/route-git.yaml
vendored
Normal 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
|
||||
Loading…
Reference in a new issue