fix: Remove useless session key setting

This commit is contained in:
Glenn Y. Rolland 2022-05-08 20:59:52 +02:00
parent 5a658e416b
commit 58a1320e7b

View file

@ -22,7 +22,6 @@ if [ -z "$ETHERPAD_DB_PASS" ]; then
exit 1 exit 1
fi fi
RANDOM_STRING="$(node -p "require('crypto').randomBytes(32).toString('hex')")}"
# Sanitize DB information # Sanitize DB information
ETHERPAD_DB_HOST="${ETHERPAD_DB_HOST:-}" ETHERPAD_DB_HOST="${ETHERPAD_DB_HOST:-}"
@ -30,7 +29,6 @@ ETHERPAD_DB_PORT="${ETHERPAD_DB_PORT:-3306}"
# Sanitize etherpad info # Sanitize etherpad info
ETHERPAD_PORT="${ETHERPAD_PORT:-9001}" ETHERPAD_PORT="${ETHERPAD_PORT:-9001}"
ETHERPAD_SESSION_KEY="${ETHERPAD_SESSION_KEY:-$RANDOM_STRING}"
ETHERPAD_TITLE="${ETHERPAD_TITLE:-Etherpad}" ETHERPAD_TITLE="${ETHERPAD_TITLE:-Etherpad}"
# Wait for database # Wait for database
@ -71,7 +69,6 @@ if ! [ -f settings.json ]; then
"ip": "0.0.0.0", "ip": "0.0.0.0",
"port" :${ETHERPAD_PORT}, "port" :${ETHERPAD_PORT},
"skinName": "colibris", "skinName": "colibris",
"sessionKey" : "${ETHERPAD_SESSION_KEY}",
"trustProxy" : false, "trustProxy" : false,
"minify" : true, "minify" : true,
"defaultPadText" : "Welcome to Etherpad!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nIMPORTANT: this pad will be deleted after 30 days. Please don't consider it as document storage.", "defaultPadText" : "Welcome to Etherpad!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nIMPORTANT: this pad will be deleted after 30 days. Please don't consider it as document storage.",