apps/forgejo/resources/routes.yaml

48 lines
No EOL
868 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: https
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