Super happy to be wrong about needing pre-made config!

I previously thought that a configuration was necessary, as I assumed that there was no built-in mode. But very happy to be wrong that it can absolutely be ran to serve static content without making your own nginx.conf file!
This commit is contained in:
WilliamMiceli
2018-12-09 17:45:46 -05:00
parent 0861f6fb6b
commit 6227eb85af
2 changed files with 11 additions and 1 deletions

View File

@@ -34,7 +34,9 @@ services:
{{- end}}
restart: on-failure
volumes:
# - /RancherCattle/${DATA_DIR}/Configuration:/etc/nginx
{{- if eq .Values.PERSIST_CONF "true"}}
- /RancherCattle/${DATA_DIR}/Configuration:/etc/nginx
{{- end}}
- /RancherCattle/${DATA_DIR}/HTML:/usr/share/nginx/html
networks:

View File

@@ -34,6 +34,14 @@ catalog:
required: false
type: int
- variable: "PERSIST_CONF"
label: "Persistent Configuration"
description: |
Have a persistent congiguration directory.
default: true
required: true
type: boolean
- variable: "DATA_DIR"
label: "Data Directory"
description: |