Skip to content

Commit

Permalink
fix: authelia url path (#264)
Browse files Browse the repository at this point in the history
This fixes an issue where the path value for the authelia_url was ignored.
  • Loading branch information
james-d-elliott authored Oct 2, 2024
1 parent 36abc0f commit bbce6f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.9.6
version: 0.9.7
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
8 changes: 8 additions & 0 deletions charts/authelia/templates/_ingress.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{{- define "authelia.ingress.uri" -}}
{{- if .Path }}
{{- printf "https://%s/%s" (include "authelia.ingress.host" .) .Path }}
{{- else }}
{{- printf "https://%s" (include "authelia.ingress.host" .) }}
{{- end }}
{{- end -}}

{{/*
Returns the ingress host value.
*/}}
Expand Down
2 changes: 1 addition & 1 deletion charts/authelia/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ data:
cookies:
{{- range $cookie := (required "The value 'configMap.session.cookies' must have at least one configuration" $session.cookies) }}
- domain: {{ required "All 'domain' values for the 'configMap.session.cookies' configurations must be configured" .domain | squote }}
authelia_url: {{ printf "https://%s" (include "authelia.ingress.host" (merge (dict "SubDomain" $cookie.subdomain "Domain" $cookie.domain) $)) | squote }}
authelia_url: {{ include "authelia.ingress.uri" (merge (dict "SubDomain" $cookie.subdomain "Domain" $cookie.domain "Path" $cookie.path) $) | squote }}
{{- if $cookie.default_redirection_url }}
default_redirection_url: {{ $cookie.default_redirection_url | squote }}
{{- end }}
Expand Down

0 comments on commit bbce6f4

Please sign in to comment.