From 7cc71f7ccd98092adaff61176c7d49dd83c380d3 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sun, 23 Apr 2023 01:10:51 +0200 Subject: [PATCH] more experimenting with regex rules --- prometheus/ingress.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus/ingress.yaml b/prometheus/ingress.yaml index a2dd6a3..dec45c2 100644 --- a/prometheus/ingress.yaml +++ b/prometheus/ingress.yaml @@ -10,7 +10,7 @@ metadata: acme.cert-manager.io/http01-edit-in-place: "true" ingress.kubernetes.io/ssl-redirect: "false" nginx.org/server-snippets: | - location /.well-known/acme-challenge/ { + location ~ /.well-known/acme-challenge/(.*) { auth_basic off; } nginx.org/basic-auth-secret: prometheus-basic-auth-secret @@ -43,7 +43,7 @@ metadata: acme.cert-manager.io/http01-edit-in-place: "true" ingress.kubernetes.io/ssl-redirect: "false" nginx.org/server-snippets: | - location /.well-known/acme-challenge/ { + location ~ /.well-known/acme-challenge/(.*) { auth_basic off; } nginx.org/basic-auth-secret: prometheus-basic-auth-secret