diff --git a/dashboard-sqdc/k8s/ingress.yaml b/dashboard-sqdc/k8s/ingress.yaml index 90c998f..f0a8158 100644 --- a/dashboard-sqdc/k8s/ingress.yaml +++ b/dashboard-sqdc/k8s/ingress.yaml @@ -5,12 +5,21 @@ metadata: namespace: sqdc-dashboard annotations: nginx.ingress.kubernetes.io/ssl-redirect: "false" + nginx.ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/use-regex: "true" spec: ingressClassName: nginx rules: - host: diwii.sortifal.dev http: paths: + - path: /api(/|$)(.*) + pathType: ImplementationSpecific + backend: + service: + name: sqdc-api + port: + number: 3001 - path: / pathType: Prefix backend: @@ -18,10 +27,3 @@ spec: name: sqdc-frontend port: number: 80 - - path: /api/ - pathType: Prefix - backend: - service: - name: sqdc-api - port: - number: 3001