Skip to content
Snippets Groups Projects
Verified Commit 811a400a authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Lufi] Not sure about KEY_COOKIE injection, change to env variable

parent f1513f7c
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,6 @@ if [ -z "${POSTGRES_PASSWORD}" ]; then
exit 1
fi
echo "Generate secret key for cookies..."
key=`tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 48 | head -n 1`
echo "Create crontab for cleaning tasks..."
# See https://framagit.org/fiat-tux/hat-softwares/lufi/-/wikis/cron-jobs
......@@ -33,7 +30,7 @@ echo "0 0 * * * carton exec $APP_HOME/script/lufi cron cleanfiles --mode product
echo "Start Lufi..."
KEY_COOKIE=${key} $@ &
$@ &
echo "Start supercronic..."
supercronic /crontab.conf
EMAIL_PASSWORD=password
# Generate one with the following command :
# tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 48 | head -n 1
KEY_COOKIE=
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment