Add custom 404.html to nginx default backend
This commit is contained in:
@@ -132,3 +132,21 @@ defaultBackend:
|
||||
operator: Exists
|
||||
effect: NoSchedule
|
||||
|
||||
## Additional volumeMounts to the default backend container.
|
||||
# - name: copy-portal-skins
|
||||
# mountPath: /var/lib/lemonldap-ng/portal/skins
|
||||
extraVolumeMounts:
|
||||
- name: custom-error-pages
|
||||
mountPath: /www
|
||||
|
||||
## Additional volumes to the default backend pod.
|
||||
# - name: copy-portal-skins
|
||||
# emptyDir: {}
|
||||
extraVolumes:
|
||||
- name: custom-error-pages
|
||||
configMap:
|
||||
name: custom-error-pages
|
||||
items:
|
||||
- key: "404"
|
||||
path: "404.html"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user