diff --git a/durpapi/templates/ingress.yaml b/durpapi/templates/ingress.yaml index c47fe25..b088dff 100644 --- a/durpapi/templates/ingress.yaml +++ b/durpapi/templates/ingress.yaml @@ -18,6 +18,24 @@ spec: --- +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: "{{ .Chart.Name }}-ingress" +spec: + entryPoints: + - websecure + routes: + - match: Host("test.durp.info") && PathPrefix(`/swagger`) + kind: Rule + services: + - name: "durpapi-service" + port: 80 + tls: + secretName: durpapi-tls + +--- + apiVersion: cert-manager.io/v1 kind: Certificate metadata: @@ -42,4 +60,4 @@ spec: jwt: Required: true Keys: - - https://authentik.durp.info/application/o/api/jwks \ No newline at end of file + - https://authentik.durp.info/application/o/api/jwks