2
0

🐳 Fix encryption length check script

The encryption length can also be of length 80 if encoded with base64

Closes #516
This commit is contained in:
Baptiste Arnaud
2023-05-17 11:35:32 +02:00
parent c451ba7784
commit 0fc6bfa7ce
3 changed files with 6 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ if [ -z "$DATABASE_URL" ]; then
exit 1
fi
if [ ${#ENCRYPTION_SECRET} -ne 32 ]; then
if [ ${#ENCRYPTION_SECRET} -ne 32 ] && [ ${#ENCRYPTION_SECRET} -ne 80 ]; then
echo "ENCRYPTION_SECRET is not 32 characters long. Exiting... (To generate a valid secret: https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)"
exit 1
fi