From 9a822af3105674e680834f4ba8b05d0d86eeca9f Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Fri, 8 Jul 2022 18:21:11 +0200 Subject: [PATCH] Enable redis addon Signed-off-by: Rafael Caricio --- CloudronManifest.json | 3 ++- start.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index 0555486..b86d1b8 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -9,7 +9,8 @@ "healthCheckPath": "/", "httpPort": 8888, "addons": { - "localstorage": {} + "localstorage": {}, + "redis": {} }, "manifestVersion": 2, "website": "https://docs.searxng.org", diff --git a/start.sh b/start.sh index 8c944ce..dfb6c5f 100755 --- a/start.sh +++ b/start.sh @@ -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