diff --git a/infrastructure/gateway/envoy/routes/leantime.yaml b/infrastructure/gateway/envoy/routes/leantime.yaml new file mode 100644 index 0000000..cd3384a --- /dev/null +++ b/infrastructure/gateway/envoy/routes/leantime.yaml @@ -0,0 +1,38 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: leantime + namespace: leantime +spec: + parentRefs: + - name: public-gateway + namespace: apps + hostnames: + - "www.symcrest.com" + rules: + - matches: + - path: + type: Exact + value: /services/studio/leantime + filters: + - type: RequestRedirect + requestRedirect: + scheme: https + path: + type: ReplaceFullPath + replaceFullPath: /services/studio/leantime/ + statusCode: 301 + + - matches: + - path: + type: PathPrefix + value: /services/studio/leantime/ + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: / + backendRefs: + - name: leantime + port: 8080