diff --git a/.template.huly.conf b/.template.huly.conf index 7364dc3..6dbb5c9 100644 --- a/.template.huly.conf +++ b/.template.huly.conf @@ -14,6 +14,11 @@ SECURE=${SECURE} HTTP_PORT=${HTTP_PORT} HTTP_BIND=${HTTP_BIND} +# Huly specific variables +TITLE=${TITLE} +DEFAULT_LANGUAGE=${DEFAULT_LANGUAGE} +LAST_NAME_FIRST=${LAST_NAME_FIRST} + # The following configs are auto-generated by the setup script. # Please do not manually overwrite. diff --git a/setup.sh b/setup.sh index fce921c..d907fc7 100755 --- a/setup.sh +++ b/setup.sh @@ -79,10 +79,13 @@ else echo "Run this script with --secret to generate a new secret." fi -export HTTP_BIND=$HTTP_BIND -export SECURE=$_SECURE export HOST_ADDRESS=$_HOST_ADDRESS +export SECURE=$_SECURE export HTTP_PORT=$_HTTP_PORT +export HTTP_BIND=$HTTP_BIND +export TITLE=${TITLE:-Huly} +export DEFAULT_LANGUAGE=${DEFAULT_LANGUAGE:-en} +export LAST_NAME_FIRST=${LAST_NAME_FIRST:-true} export HULY_SECRET=$(cat .huly.secret) envsubst < .template.huly.conf > $CONFIG_FILE