Browse Source

SearXNG: SEARX_BIND_ADDRESS

Alexandre Flament 3 years ago
parent
commit
9e266ecad3
7 changed files with 8 additions and 8 deletions
  1. 1 1
      CHANGELOG.rst
  2. 1 1
      docs/admin/engines/settings.rst
  3. 1 1
      docs/dev/makefile.rst
  4. 1 1
      utils/brand.env
  5. 2 2
      utils/build_env.py
  6. 1 1
      utils/filtron.sh
  7. 1 1
      utils/searx.sh

+ 1 - 1
CHANGELOG.rst

@@ -360,7 +360,7 @@ News
 - Docker image updates
 - Docker image updates
 - Bang expression fixes
 - Bang expression fixes
 - Result merging fixes
 - Result merging fixes
-- New environment variable added: SEARX_BIND_ADDRESS
+- New environment variable added: SEARXNG_BIND_ADDRESS
 
 
 
 
 News
 News

+ 1 - 1
docs/admin/engines/settings.rst

@@ -114,7 +114,7 @@ Global Settings
   If you change the value, don't forget to rebuild instance's environment
   If you change the value, don't forget to rebuild instance's environment
   (:ref:`utils/brand.env <make buildenv>`)
   (:ref:`utils/brand.env <make buildenv>`)
 
 
-``port`` & ``bind_address``: :ref:`buildenv SEARXNG_PORT & SEARX_BIND_ADDRESS <make buildenv>`
+``port`` & ``bind_address``: :ref:`buildenv SEARXNG_PORT & SEARXNG_BIND_ADDRESS <make buildenv>`
   Port number and *bind address* of the SearXNG web application if you run it
   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
   directly using ``python searx/webapp.py``.  Doesn't apply to SearXNG running on
   Apache or Nginx.
   Apache or Nginx.

+ 1 - 1
docs/dev/makefile.rst

@@ -109,7 +109,7 @@ from the YAML configuration:
 
 
 - ``SEARX_URL`` from :ref:`server.base_url <settings global server>` (aka
 - ``SEARX_URL`` from :ref:`server.base_url <settings global server>` (aka
   ``PUBLIC_URL``)
   ``PUBLIC_URL``)
-- ``SEARX_BIND_ADDRESS`` from :ref:`server.bind_address <settings global server>`
+- ``SEARXNG_BIND_ADDRESS`` from :ref:`server.bind_address <settings global server>`
 - ``SEARXNG_PORT`` from :ref:`server.port <settings global server>`
 - ``SEARXNG_PORT`` from :ref:`server.port <settings global server>`
 
 
 .. _make run:
 .. _make run:

+ 1 - 1
utils/brand.env

@@ -1,5 +1,5 @@
 export SEARX_URL=''
 export SEARX_URL=''
 export SEARXNG_PORT='8888'
 export SEARXNG_PORT='8888'
-export SEARX_BIND_ADDRESS='127.0.0.1'
+export SEARXNG_BIND_ADDRESS='127.0.0.1'
 export GIT_URL='https://github.com/searxng/searxng'
 export GIT_URL='https://github.com/searxng/searxng'
 export GIT_BRANCH='master'
 export GIT_BRANCH='master'

+ 2 - 2
utils/build_env.py

@@ -30,14 +30,14 @@ name_val = [
 
 
     ('SEARX_URL'              , 'server.base_url'),
     ('SEARX_URL'              , 'server.base_url'),
     ('SEARXNG_PORT'             , 'server.port'),
     ('SEARXNG_PORT'             , 'server.port'),
-    ('SEARX_BIND_ADDRESS'     , 'server.bind_address'),
+    ('SEARXNG_BIND_ADDRESS'     , 'server.bind_address'),
 
 
 ]
 ]
 
 
 brand_env = 'utils' + sep + 'brand.env'
 brand_env = 'utils' + sep + 'brand.env'
 
 
 # Some defaults in the settings.yml are taken from the environment,
 # Some defaults in the settings.yml are taken from the environment,
-# e.g. SEARX_BIND_ADDRESS (:py:obj:`searx.settings_defaults.SHEMA`).  When the
+# e.g. SEARXNG_BIND_ADDRESS (:py:obj:`searx.settings_defaults.SHEMA`).  When the
 # 'brand.env' file is created these enviroment variables should be unset first::
 # 'brand.env' file is created these enviroment variables should be unset first::
 
 
 _unset = object()
 _unset = object()

+ 1 - 1
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
 # server.bind_address.  The default of FILTRON_TARGET is taken from the YAML
 # configuration, do not change this value without reinstalling the entire
 # configuration, do not change this value without reinstalling the entire
 # SearXNG suite including filtron & morty.
 # SearXNG suite including filtron & morty.
-FILTRON_TARGET="${SEARX_BIND_ADDRESS}:${SEARXNG_PORT}"
+FILTRON_TARGET="${SEARXNG_BIND_ADDRESS}:${SEARXNG_PORT}"
 
 
 SERVICE_NAME="filtron"
 SERVICE_NAME="filtron"
 SERVICE_USER="${SERVICE_USER:-${SERVICE_NAME}}"
 SERVICE_USER="${SERVICE_USER:-${SERVICE_NAME}}"

+ 1 - 1
utils/searx.sh

@@ -12,7 +12,7 @@ source "${REPO_ROOT}/utils/lib_install.sh"
 # config
 # config
 # ----------------------------------------------------------------------------
 # ----------------------------------------------------------------------------
 
 
-SEARX_INTERNAL_HTTP="${SEARX_BIND_ADDRESS}:${SEARXNG_PORT}"
+SEARX_INTERNAL_HTTP="${SEARXNG_BIND_ADDRESS}:${SEARXNG_PORT}"
 
 
 SEARX_URL_PATH="${SEARX_URL_PATH:-$(echo "${PUBLIC_URL}" \
 SEARX_URL_PATH="${SEARX_URL_PATH:-$(echo "${PUBLIC_URL}" \
 | sed -e 's,^.*://[^/]*\(/.*\),\1,g')}"
 | sed -e 's,^.*://[^/]*\(/.*\),\1,g')}"