diff --git a/charts/self-hosted/templates/gateway/config.yaml b/charts/self-hosted/templates/gateway/config.yaml index beecd74..1c941cf 100644 --- a/charts/self-hosted/templates/gateway/config.yaml +++ b/charts/self-hosted/templates/gateway/config.yaml @@ -60,7 +60,7 @@ data: {{ include "swanlab.gateway.identify" . }}: plugin: identify: - AuthUrl: {{ include "swanlab.server.identify" . | quote }} + AuthUrl: {{ include "swanlab.auth.identify" . | quote }} {{- if .Values.integrations.s3.enabled | eq false }} {{ include "swanlab.gateway.s3" . }}: headers: diff --git a/charts/self-hosted/templates/swanlab-auth/_helpers.tpl b/charts/self-hosted/templates/swanlab-auth/_helpers.tpl index 90f3e95..7ad5eec 100644 --- a/charts/self-hosted/templates/swanlab-auth/_helpers.tpl +++ b/charts/self-hosted/templates/swanlab-auth/_helpers.tpl @@ -10,6 +10,14 @@ Cut of 40 chars to comply with k8s name limit. {{- end -}} {{- end -}} +{{/* +SwanLab-Auth Identity URL (gateway identify plugin) +*/}} +{{- define "swanlab.auth.identify" -}} +{{- printf "http://%s:%s/api/auth/identity" (include "swanlab.auth.fullname" .) (include "swanlab.auth.port" .) -}} +{{- end -}} + + {{/* SwanLab-Auth Image */}}