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:
@@ -34,7 +34,9 @@ services:
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
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
|
- /RancherCattle/${DATA_DIR}/HTML:/usr/share/nginx/html
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -34,6 +34,14 @@ catalog:
|
|||||||
required: false
|
required: false
|
||||||
type: int
|
type: int
|
||||||
|
|
||||||
|
- variable: "PERSIST_CONF"
|
||||||
|
label: "Persistent Configuration"
|
||||||
|
description: |
|
||||||
|
Have a persistent congiguration directory.
|
||||||
|
default: true
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
- variable: "DATA_DIR"
|
- variable: "DATA_DIR"
|
||||||
label: "Data Directory"
|
label: "Data Directory"
|
||||||
description: |
|
description: |
|
||||||
|
|||||||
Reference in New Issue
Block a user