Skip to content

Commit

Permalink
Merge pull request #117 from maykinmedia/feature/archiefbeheer-x-forw…
Browse files Browse the repository at this point in the history
…arded

Add USE_X_FORWARDED_HOST envvar
  • Loading branch information
sjoerdie authored Jul 4, 2024
2 parents 9375dc2 + 4b0710b commit b8db1a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/openarchiefbeheer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: openarchiefbeheer
description: Opstellen, beheren en uitvoeren van vernietigingslijsten, voor gebruik met Zaakgericht werken

type: application
version: 0.9.7
appVersion: 1.1.1
version: 0.9.8
appVersion: 1.1.5

dependencies:
- name: redis
Expand Down
3 changes: 3 additions & 0 deletions charts/openarchiefbeheer/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "openarchiefbeheer.labels" . | nindent 4 }}
data:
DJANGO_SETTINGS_MODULE: {{ .Values.settings.djangoSettingsModule | toString | quote }}
{{- if .Values.settings.useXForwardedHost }}
USE_X_FORWARDED_HOST: "True"
{{- end }}
ENVIRONMENT: {{ .Values.settings.environment | default (include "openarchiefbeheer.fullname" .) }}
ALLOWED_HOSTS: "{{ include "openarchiefbeheer.fullname" . }},{{ include "openarchiefbeheer.fullname" . }}.{{ .Release.Namespace }},{{ .Values.settings.allowedHosts | replace " " "" | toString }}"
{{- if .Values.tags.redis }}
Expand Down
1 change: 1 addition & 0 deletions charts/openarchiefbeheer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ extraVolumeMounts: []
settings:
allowedHosts: ""
djangoSettingsModule: archiefbeheercomponent.conf.docker
useXForwardedHost: true

# -- Generate secret key at https://djecrety.ir/
secretKey: ""
Expand Down

0 comments on commit b8db1a8

Please sign in to comment.