apps/forgejo/resources/routes.yaml
Peter Kurfer b2e15a12bf
Some checks failed
Renovate / renovate (push) Failing after 13m13s
chore(forgejo): switch to extra listener
2024-05-11 18:54:02 +02:00

48 lines
No EOL
870 B
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: forgejo-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- code.icb4dc0.de
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: forgejo-https
spec:
parentRefs:
- name: contour
sectionName: forgejo
namespace: projectcontour
hostnames:
- code.icb4dc0.de
rules:
- backendRefs:
- name: forgejo-http
port: 3000
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
name: forgejo-ssh
spec:
parentRefs:
- name: contour
sectionName: ssh
namespace: projectcontour
rules:
- backendRefs:
- name: forgejo-ssh
port: 22