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