From 32b2ccefc023e4447623922c05c66804de4e7c28 Mon Sep 17 00:00:00 2001 From: veryCrunchy Date: Wed, 25 Sep 2024 03:38:38 +0200 Subject: [PATCH] feat: add huly specific envs --- .template.huly.conf | 5 +++++ setup.sh | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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