diff --git a/ansible/templates/kaui/conf/setenv2.sh.j2 b/ansible/templates/kaui/conf/setenv2.sh.j2 index 24f2e5f9..c9d10611 100644 --- a/ansible/templates/kaui/conf/setenv2.sh.j2 +++ b/ansible/templates/kaui/conf/setenv2.sh.j2 @@ -1,3 +1,8 @@ # Java Properties + export CATALINA_OPTS="$CATALINA_OPTS {{ kaui_system_properties }}" + +if [ -z ${KAUI_SECRET_KEY_BASE+x} ]; then + export KAUI_SECRET_KEY_BASE=$(head -c 1024 /dev/urandom | base64 | tr -cd "[:upper:][:digit:]" | head -c 129) +fi