allow for specifying middleware proxy root url

This commit is contained in:
Arlan Lloyd 2025-11-02 03:30:31 +00:00 committed by Zoe Roux
parent a563d8f8ba
commit cd65632527
No known key found for this signature in database
3 changed files with 12 additions and 1 deletions

View File

@ -126,4 +126,12 @@ Create the name of the traefikproxy service account to use
{{- else -}}
{{ default "default" .Values.traefikproxy.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{/*
Create kyoo middlewareproxy rootURL
rootURL does not include
*/}}
{{- define "kyoo.middlewareRootURL" -}}
{{ default (printf "http://%s" (include "kyoo.traefikproxy.fullname" .)) .Values.kyoo.middlewareRootURL }}
{{- end -}}

View File

@ -57,7 +57,7 @@ spec:
- name: LIBRARY_IGNORE_PATTERN
value: {{ .Values.kyoo.libraryIgnorePattern | quote }}
- name: KYOO_URL
value: "http://{{ include "kyoo.api.fullname" . }}:3567/api"
value: "{{ include "kyoo.middlewareRootURL" . }}/api"
- name: JWKS_URL
value: "http://{{ include "kyoo.auth.fullname" . }}:4568/.well-known/jwks.json"
- name: JWT_ISSUER

View File

@ -79,6 +79,9 @@ global:
kyoo:
# The url you can use to reach your kyoo instance. This is used during oidc to redirect users to your instance.
address: "https://kyoo.mydomain.com"
# base url for accessing kyoo microservices behind middleware proxy
# defaults to traefikproxy service unless specified otherwise
middlewareRootURL: ~
# new auth settings
extraClaims: '{"permissions": ["core.read"], "verified": false}'