Enable redis addon

Signed-off-by: Rafael Caricio <rafael@caricio.com>
This commit is contained in:
Rafael Caricio 2022-07-08 18:21:11 +02:00
parent 7c7a55c078
commit 9a822af310
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947
2 changed files with 3 additions and 1 deletions

View file

@ -9,7 +9,8 @@
"healthCheckPath": "/",
"httpPort": 8888,
"addons": {
"localstorage": {}
"localstorage": {},
"redis": {}
},
"manifestVersion": 2,
"website": "https://docs.searxng.org",

View file

@ -18,6 +18,7 @@ if [[ ! -f /app/data/settings.yml ]]; then
echo "=> Copying settings from template on first run"
cp /app/code/searx/settings.yml.orig /app/data/settings.yml
sed -e 's/bind_address: "127.0.0.1"/bind_address: "0.0.0.0"/g' \
-e "s/url: .*redis\.sock.*/url: \"redis:\/\/:${CLOUDRON_REDIS_PASSWORD}@${CLOUDRON_REDIS_HOST}:${CLOUDRON_REDIS_PORT}\/0\"/g" \
-e "s/ultrasecretkey/`openssl rand -hex 16`/g" \
-i /app/data/settings.yml
fi