Skip to content

Commit

Permalink
Merge pull request #257 from killbill/kaui_secret_base_issue
Browse files Browse the repository at this point in the history
Fix KAUI_SECRET_KEY_BASE issue
  • Loading branch information
reshmabidikar authored Mar 18, 2024
2 parents d235e67 + 8969d67 commit e05db2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/templates/kaui/latest/setenv2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Java Properties
export CATALINA_OPTS="$CATALINA_OPTS
"
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 "

#
# Load legacy properties (backward compatibility)
Expand All @@ -17,6 +20,3 @@ fi
if [ ! -z ${KAUI_CONFIG_DAO_PASSWORD+x} ]; then
export KAUI_DB_PASSWORD=$KAUI_CONFIG_DAO_PASSWORD
fi
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

0 comments on commit e05db2d

Please sign in to comment.