forked from zaclys/searxng
Revert "[mod] activate limiter & link_token method (aka CSS ping) by default"
This reverts commit 3af629ec090d1ab135fbd7c9b45088c8ca4e541e.
This commit is contained in:
parent
00a8648472
commit
c930fa43ac
|
@ -23,7 +23,6 @@ SEARXNG_STATIC="${SEARXNG_SRC}/searx/static"
|
||||||
|
|
||||||
SEARXNG_PYENV="${SERVICE_HOME}/searx-pyenv"
|
SEARXNG_PYENV="${SERVICE_HOME}/searx-pyenv"
|
||||||
SEARXNG_SETTINGS_PATH="/etc/searxng/settings.yml"
|
SEARXNG_SETTINGS_PATH="/etc/searxng/settings.yml"
|
||||||
LIMITER_SETTINGS_PATH="/etc/searxng/limiter.toml"
|
|
||||||
SEARXNG_UWSGI_APP="searxng.ini"
|
SEARXNG_UWSGI_APP="searxng.ini"
|
||||||
|
|
||||||
SEARXNG_INTERNAL_HTTP="${SEARXNG_BIND_ADDRESS}:${SEARXNG_PORT}"
|
SEARXNG_INTERNAL_HTTP="${SEARXNG_BIND_ADDRESS}:${SEARXNG_PORT}"
|
||||||
|
@ -132,7 +131,7 @@ install|remove:
|
||||||
all : complete (de-) installation of the SearXNG service
|
all : complete (de-) installation of the SearXNG service
|
||||||
user : service user '${SERVICE_USER}' (${SERVICE_HOME})
|
user : service user '${SERVICE_USER}' (${SERVICE_HOME})
|
||||||
pyenv : virtualenv (python) in ${SEARXNG_PYENV}
|
pyenv : virtualenv (python) in ${SEARXNG_PYENV}
|
||||||
settings : settings from $(dirname "${SEARXNG_SETTINGS_PATH}")
|
settings : settings from ${SEARXNG_SETTINGS_PATH}
|
||||||
uwsgi : SearXNG's uWSGI app ${SEARXNG_UWSGI_APP}
|
uwsgi : SearXNG's uWSGI app ${SEARXNG_UWSGI_APP}
|
||||||
redis : build & install or remove a local redis server ${REDIS_HOME}/run/redis.sock
|
redis : build & install or remove a local redis server ${REDIS_HOME}/run/redis.sock
|
||||||
nginx : HTTP site ${NGINX_APPS_AVAILABLE}/${NGINX_SEARXNG_SITE}
|
nginx : HTTP site ${NGINX_APPS_AVAILABLE}/${NGINX_SEARXNG_SITE}
|
||||||
|
@ -523,7 +522,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
searxng.install.settings() {
|
searxng.install.settings() {
|
||||||
rst_title "install $(dirname "${SEARXNG_SETTINGS_PATH}")" section
|
rst_title "install ${SEARXNG_SETTINGS_PATH}" section
|
||||||
|
|
||||||
if ! [[ -f "${SEARXNG_SRC}/.git/config" ]]; then
|
if ! [[ -f "${SEARXNG_SRC}/.git/config" ]]; then
|
||||||
die "Before install settings, first install SearXNG."
|
die "Before install settings, first install SearXNG."
|
||||||
|
@ -532,11 +531,6 @@ searxng.install.settings() {
|
||||||
|
|
||||||
mkdir -p "$(dirname "${SEARXNG_SETTINGS_PATH}")"
|
mkdir -p "$(dirname "${SEARXNG_SETTINGS_PATH}")"
|
||||||
|
|
||||||
DEFAULT_SELECT=1 \
|
|
||||||
install_template --no-eval \
|
|
||||||
"${LIMITER_SETTINGS_PATH}" \
|
|
||||||
"${SERVICE_USER}" "${SERVICE_GROUP}"
|
|
||||||
|
|
||||||
DEFAULT_SELECT=1 \
|
DEFAULT_SELECT=1 \
|
||||||
install_template --no-eval \
|
install_template --no-eval \
|
||||||
"${SEARXNG_SETTINGS_PATH}" \
|
"${SEARXNG_SETTINGS_PATH}" \
|
||||||
|
@ -551,7 +545,6 @@ searxng.remove.settings() {
|
||||||
rst_title "remove ${SEARXNG_SETTINGS_PATH}" section
|
rst_title "remove ${SEARXNG_SETTINGS_PATH}" section
|
||||||
if ask_yn "Do you want to delete the SearXNG settings?" Yn; then
|
if ask_yn "Do you want to delete the SearXNG settings?" Yn; then
|
||||||
rm -f "${SEARXNG_SETTINGS_PATH}"
|
rm -f "${SEARXNG_SETTINGS_PATH}"
|
||||||
rm -f "${LIMITER_SETTINGS_PATH}"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -582,12 +575,6 @@ pip install -U wheel
|
||||||
pip install -U pyyaml
|
pip install -U pyyaml
|
||||||
pip install -U -e .
|
pip install -U -e .
|
||||||
EOF
|
EOF
|
||||||
rst_para "update instance's limiter.toml from ${LIMITER_SETTINGS_PATH}"
|
|
||||||
DEFAULT_SELECT=2 \
|
|
||||||
install_template --no-eval \
|
|
||||||
"${LIMITER_SETTINGS_PATH}" \
|
|
||||||
"${SERVICE_USER}" "${SERVICE_GROUP}"
|
|
||||||
|
|
||||||
rst_para "update instance's settings.yml from ${SEARXNG_SETTINGS_PATH}"
|
rst_para "update instance's settings.yml from ${SEARXNG_SETTINGS_PATH}"
|
||||||
DEFAULT_SELECT=2 \
|
DEFAULT_SELECT=2 \
|
||||||
install_template --no-eval \
|
install_template --no-eval \
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
# Limiter configuration / bot protection & IP rate limitation
|
|
||||||
|
|
||||||
[real_ip]
|
|
||||||
|
|
||||||
# number of values to trust for X-Forwarded-For
|
|
||||||
# https://docs.searxng.org/admin/searx.botdetection.html#searx.botdetection.get_real_ip
|
|
||||||
x_for = 1
|
|
||||||
|
|
||||||
[botdetection.ip_limit]
|
|
||||||
|
|
||||||
# activate link_token method in the ip_limit method
|
|
||||||
# https://docs.searxng.org/admin/searx.botdetection.html#method-ip-limit
|
|
||||||
link_token = true
|
|
Loading…
Reference in New Issue