45 lines
814 B
YAML
45 lines
814 B
YAML
|
---
|
||
|
apiVersion: gateway.networking.k8s.io/v1
|
||
|
kind: HTTPRoute
|
||
|
metadata:
|
||
|
name: vikunja-http
|
||
|
spec:
|
||
|
parentRefs:
|
||
|
- name: contour
|
||
|
sectionName: http
|
||
|
namespace: projectcontour
|
||
|
hostnames:
|
||
|
- todo.icb4dc0.de
|
||
|
rules:
|
||
|
- filters:
|
||
|
- type: RequestRedirect
|
||
|
requestRedirect:
|
||
|
scheme: https
|
||
|
statusCode: 301
|
||
|
---
|
||
|
apiVersion: gateway.networking.k8s.io/v1
|
||
|
kind: HTTPRoute
|
||
|
metadata:
|
||
|
name: vikunja-https
|
||
|
spec:
|
||
|
parentRefs:
|
||
|
- name: contour
|
||
|
sectionName: https
|
||
|
namespace: projectcontour
|
||
|
hostnames:
|
||
|
- todo.icb4dc0.de
|
||
|
rules:
|
||
|
- matches:
|
||
|
- path:
|
||
|
type: PathPrefix
|
||
|
value: /
|
||
|
backendRefs:
|
||
|
- name: vikunja-ui
|
||
|
port: 8080
|
||
|
- matches:
|
||
|
- path:
|
||
|
type: PathPrefix
|
||
|
value: /api/v1
|
||
|
backendRefs:
|
||
|
- name: vikunja-api
|
||
|
port: 3456
|