diff --git a/charts/my-recipes-chart/values.yaml b/charts/my-recipes-chart/values.yaml index 542968f..e326e2b 100644 --- a/charts/my-recipes-chart/values.yaml +++ b/charts/my-recipes-chart/values.yaml @@ -41,9 +41,8 @@ frontend: port: 3000 targetPort: 3000 - env: {} - # Uncomment and set API_BASE if needed: - # API_BASE: "http://localhost:8000/api" + env: + API_BASE: "https://my-recipes.dvirlabs.com/api" resources: requests: @@ -94,7 +93,7 @@ ingress: nginx.ingress.kubernetes.io/rewrite-target: "/$2" nginx.ingress.kubernetes.io/use-regex: "true" hosts: - - host: recipes.local + - host: my-recipes.dvirlabs.com paths: - path: / pathType: Prefix @@ -106,5 +105,5 @@ ingress: tls: - secretName: recipes-tls hosts: - - recipes.local + - my-recipes.dvirlabs.com diff --git a/manifests/my-recipes/values.yaml b/manifests/my-recipes/values.yaml index 7dfb4ee..ae86dd9 100644 --- a/manifests/my-recipes/values.yaml +++ b/manifests/my-recipes/values.yaml @@ -75,19 +75,20 @@ postgres: # Ingress (top-level, maps frontend/backend paths) ingress: enabled: true - className: traefik + className: "nginx" annotations: - traefik.ingress.kubernetes.io/router.entrypoints: websecure - traefik.ingress.kubernetes.io/router.tls: "true" - cert-manager.io/cluster-issuer: null + cert-manager.io/cluster-issuer: "letsencrypt-prod" + nginx.ingress.kubernetes.io/rewrite-target: "/$2" + nginx.ingress.kubernetes.io/use-regex: "true" hosts: - host: my-recipes.dvirlabs.com paths: - path: / pathType: Prefix backend: frontend - - path: /api - pathType: Prefix + # use a regex to capture and rewrite /api/... to /... on the backend + - path: /api(/|$)(.*) + pathType: ImplementationSpecific backend: backend tls: - secretName: recipes-tls