From 443430bc16ddcdba1371dc2570f1b8d580b78a98 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 16 Jul 2019 12:39:16 -0700 Subject: [PATCH] replace ultrasecretkey --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 2a1f77f..7d4e850 100755 --- a/start.sh +++ b/start.sh @@ -5,7 +5,9 @@ set -eu if [[ -z "$(ls -A /app/data)" ]]; then echo "=> Detected first run" cp /app/code/searx/settings.yml.orig /app/data/settings.yml - sed -i -e 's/bind_address : "127.0.0.1"/bind_address : "0.0.0.0"/g' /app/data/settings.yml + sed -e 's/bind_address : "127.0.0.1"/bind_address : "0.0.0.0"/g' \ + -e "s/ultrasecretkey/`openssl rand -hex 16`/g" \ + -i /app/data/settings.yml fi chown -R www-data.www-data /app/data