Commit 459e7a66 authored by Jens Langhammer's avatar Jens Langhammer

re-enable health-check, fix config.domains not being loaded

parent 6bac2e64
Pipeline #3476 failed with stages
in 9 minutes and 28 seconds
pyazo (1.9.9) stable; urgency=medium
pyazo (1.9.10) stable; urgency=medium
* improve docker image
* improve kubernetes deployment and docs
......
......@@ -37,7 +37,7 @@ data:
# Set this to the server's external address.
# This is used to generate external URLs
external_url: {{ .Values.ingress.defaultHost }}
external_url: https://{{ .Values.ingress.defaultHost }}
# This dictates how the Path is generated
# can be either of:
......@@ -48,7 +48,9 @@ data:
default_return_view: view_sha256
# Set this to this server's hostname or the external domain if behind a reverse proxy
domains: {{ .Values.ingress.hosts }}
# This already contains external_url so we just specify this here
domains:
- kubernetes-healthcheck-host
# Set this to true if you only want to use external authentication
external_auth_only: false
......
......@@ -48,14 +48,20 @@ spec:
name: config-volume
- mountPath: /app/media
name: media-storage
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
livenessProbe:
httpGet:
path: /
port: http
httpHeaders:
- name: Host
value: kubernetes-healthcheck-host
readinessProbe:
httpGet:
path: /
port: http
httpHeaders:
- name: Host
value: kubernetes-healthcheck-host
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
......
......@@ -48,14 +48,6 @@ spec:
name: config-volume
- mountPath: /app/media
name: media-storage
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
......
......@@ -43,7 +43,7 @@ ALLOWED_HOSTS = set([
urlparse(CONFIG.get('external_url')).netloc,
socket.getfqdn(),
socket.gethostname()
])
] + CONFIG.get('domains'))
LOGIN_REDIRECT_URL = 'index'
# Application definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment