summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-10-02 16:56:11 +0200
committerAlexandre Flament <alex@al-f.net>2021-10-02 16:56:24 +0200
commit6443ed75622e8b99ea69b60a573275617d5f87a5 (patch)
treee68261c8e0dbccf95edee4a2b0dfd5cc737480ed
parent430babca253369d82e864500118f914a9420f74b (diff)
downloadsearxng-6443ed75622e8b99ea69b60a573275617d5f87a5.tar.gz
searxng-6443ed75622e8b99ea69b60a573275617d5f87a5.zip
SearXNG: SEARXNG_PORT
-rw-r--r--docs/admin/engines/settings.rst2
-rw-r--r--docs/dev/makefile.rst2
-rw-r--r--utils/brand.env2
-rw-r--r--utils/build_env.py2
-rwxr-xr-xutils/filtron.sh2
-rwxr-xr-xutils/searx.sh2
6 files changed, 6 insertions, 6 deletions
diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst
index 7308e2733..0e1d0d710 100644
--- a/docs/admin/engines/settings.rst
+++ b/docs/admin/engines/settings.rst
@@ -114,7 +114,7 @@ Global Settings
If you change the value, don't forget to rebuild instance's environment
(:ref:`utils/brand.env <make buildenv>`)
-``port`` & ``bind_address``: :ref:`buildenv SEARX_PORT & SEARX_BIND_ADDRESS <make buildenv>`
+``port`` & ``bind_address``: :ref:`buildenv SEARXNG_PORT & SEARX_BIND_ADDRESS <make buildenv>`
Port number and *bind address* of the SearXNG web application if you run it
directly using ``python searx/webapp.py``. Doesn't apply to SearXNG running on
Apache or Nginx.
diff --git a/docs/dev/makefile.rst b/docs/dev/makefile.rst
index 77c0dddde..09e37502e 100644
--- a/docs/dev/makefile.rst
+++ b/docs/dev/makefile.rst
@@ -110,7 +110,7 @@ from the YAML configuration:
- ``SEARX_URL`` from :ref:`server.base_url <settings global server>` (aka
``PUBLIC_URL``)
- ``SEARX_BIND_ADDRESS`` from :ref:`server.bind_address <settings global server>`
-- ``SEARX_PORT`` from :ref:`server.port <settings global server>`
+- ``SEARXNG_PORT`` from :ref:`server.port <settings global server>`
.. _make run:
diff --git a/utils/brand.env b/utils/brand.env
index bd1629175..d63e686d4 100644
--- a/utils/brand.env
+++ b/utils/brand.env
@@ -1,5 +1,5 @@
export SEARX_URL=''
-export SEARX_PORT='8888'
+export SEARXNG_PORT='8888'
export SEARX_BIND_ADDRESS='127.0.0.1'
export GIT_URL='https://github.com/searxng/searxng'
export GIT_BRANCH='master'
diff --git a/utils/build_env.py b/utils/build_env.py
index 6aa1f95f6..750f29f1c 100644
--- a/utils/build_env.py
+++ b/utils/build_env.py
@@ -29,7 +29,7 @@ def _env(*arg, **kwargs):
name_val = [
('SEARX_URL' , 'server.base_url'),
- ('SEARX_PORT' , 'server.port'),
+ ('SEARXNG_PORT' , 'server.port'),
('SEARX_BIND_ADDRESS' , 'server.bind_address'),
]
diff --git a/utils/filtron.sh b/utils/filtron.sh
index 83f492407..bb2a8d742 100755
--- a/utils/filtron.sh
+++ b/utils/filtron.sh
@@ -28,7 +28,7 @@ FILTRON_LISTEN="${FILTRON_LISTEN:-127.0.0.1:4004}"
# server.bind_address. The default of FILTRON_TARGET is taken from the YAML
# configuration, do not change this value without reinstalling the entire
# SearXNG suite including filtron & morty.
-FILTRON_TARGET="${SEARX_BIND_ADDRESS}:${SEARX_PORT}"
+FILTRON_TARGET="${SEARX_BIND_ADDRESS}:${SEARXNG_PORT}"
SERVICE_NAME="filtron"
SERVICE_USER="${SERVICE_USER:-${SERVICE_NAME}}"
diff --git a/utils/searx.sh b/utils/searx.sh
index a2d42c27b..d7838c5fc 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -12,7 +12,7 @@ source "${REPO_ROOT}/utils/lib_install.sh"
# config
# ----------------------------------------------------------------------------
-SEARX_INTERNAL_HTTP="${SEARX_BIND_ADDRESS}:${SEARX_PORT}"
+SEARX_INTERNAL_HTTP="${SEARX_BIND_ADDRESS}:${SEARXNG_PORT}"
SEARX_URL_PATH="${SEARX_URL_PATH:-$(echo "${PUBLIC_URL}" \
| sed -e 's,^.*://[^/]*\(/.*\),\1,g')}"