2024-02-21 07:12:13 +00:00
|
|
|
---
|
|
|
|
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
|
2024-05-11 16:54:02 +00:00
|
|
|
sectionName: forgejo
|
2024-02-21 07:12:13 +00:00
|
|
|
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
|