Enable redis addon
Signed-off-by: Rafael Caricio <rafael@caricio.com>
This commit is contained in:
parent
7c7a55c078
commit
9a822af310
2 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 8888,
|
"httpPort": 8888,
|
||||||
"addons": {
|
"addons": {
|
||||||
"localstorage": {}
|
"localstorage": {},
|
||||||
|
"redis": {}
|
||||||
},
|
},
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"website": "https://docs.searxng.org",
|
"website": "https://docs.searxng.org",
|
||||||
|
|
1
start.sh
1
start.sh
|
@ -18,6 +18,7 @@ if [[ ! -f /app/data/settings.yml ]]; then
|
||||||
echo "=> Copying settings from template on first run"
|
echo "=> Copying settings from template on first run"
|
||||||
cp /app/code/searx/settings.yml.orig /app/data/settings.yml
|
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' \
|
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" \
|
-e "s/ultrasecretkey/`openssl rand -hex 16`/g" \
|
||||||
-i /app/data/settings.yml
|
-i /app/data/settings.yml
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue