Commit f12be6dc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Support and document the use of env-vars for options

These changes ensure all options can be passed as environment
variables, and document the use of environment variables for such.
parent 3944a282
Loading
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -31,6 +31,20 @@ zz-final.conf
```


Environment Variables
---------------------

Any of the configuration values may also be passed as environment variables 
to the container, however:

- Unlike the way most configuration systems treat environment variables, 
  they do not overwrite options provided in the configuration files unless 
  the files are specifically written to honour the environment variables.

- For array options the value provided in the environment variable will 
  become the first item (index 0).


Convenience Files
-----------------

+3 −1
Original line number Diff line number Diff line
@@ -12,8 +12,10 @@ shopt -s nullglob globstar

declare -r DEFAULT_THEME=twentynineteen

declare -a THEMES=() PLUGINS=() LANGUAGES=()
declare DB_HOST DB_NAME DB_USER DB_PASS
declare -a THEMES=( ${THEMES-} )
declare -a PLUGINS=( ${PLUGINS-} )
declare -a LANGUAGES=( ${LANGUAGES-} )
declare -a STATIC_PATTERNS=(
	"*.crt"
	"*.md"