From 1d2b0af76961f0aa299c26219f2f6cc80cfeddaa Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 7 May 2023 17:08:04 -0500 Subject: [PATCH] update auth --- charts/durpapi/templates/ingress.yaml | 5 +++++ main.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/durpapi/templates/ingress.yaml b/charts/durpapi/templates/ingress.yaml index b9e7393..0c27f6b 100644 --- a/charts/durpapi/templates/ingress.yaml +++ b/charts/durpapi/templates/ingress.yaml @@ -14,6 +14,11 @@ spec: services: - name: {{ .Chart.Name }}-service port: {{ .Values.service.port }} + - match: Host("{{ .Values.ingress.host }}") && PathPrefix(`/swagger/index.html`) + kind: Rule + services: + - name: {{ .Chart.Name }}-service + port: {{ .Values.service.port }} tls: secretName: {{ .Values.ingress.tls }} diff --git a/main.go b/main.go index 4fbedbe..22b49ab 100644 --- a/main.go +++ b/main.go @@ -51,7 +51,7 @@ func main() { } unraid := v1.Group("/unraid") { - unraid.Use(authMiddleware()) + //unraid.Use(authMiddleware()) unraid.GET("powerusage", c.UnraidPowerUsage) } }