[brand] SearXNG - reference /etc/searxng/settings.yml

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser
2021-10-11 10:56:50 +02:00
committed by Markus Heiser
parent 3fad483b7a
commit 60edf2623d
9 changed files with 23 additions and 14 deletions

View File

@@ -155,6 +155,10 @@ install_searx_get_state(){
# - user: ${SERVICE_USER}
# - pyenv: ${SEARX_PYENV}
if [ -f /etc/searx/settings.yml ]; then
err_msg "settings.yml in /etc/searx/ is deprecated, move file to folder /etc/searxng/"
fi
if ! [ -r "${SEARX_SRC}" ]; then
echo "missing-searx-clone"
return

View File

@@ -28,7 +28,7 @@ SERVICE_GROUP="${SERVICE_USER}"
GIT_BRANCH="${GIT_BRANCH:-master}"
SEARX_PYENV="${SERVICE_HOME}/searx-pyenv"
SEARX_SRC="${SERVICE_HOME}/searx-src"
SEARXNG_SETTINGS_PATH="/etc/searx/settings.yml"
SEARXNG_SETTINGS_PATH="/etc/searxng/settings.yml"
SEARX_UWSGI_APP="searx.ini"
# shellcheck disable=SC2034
SEARX_UWSGI_SOCKET="/run/uwsgi/app/searx/socket"

View File

@@ -21,11 +21,12 @@ search:
# use codes from 'languages.py'
default_lang: ''
# remove format to deny access, use lower case.
formats: [html, csv, json, rss]
formats:
- html
server:
secret_key: "ultrasecretkey" # change this!
# Proxying image results through searx
# Proxying image results through SearXNG
image_proxy: false
# result_proxy: