2023-06-30 16:07:02 +00:00
|
|
|
.. _settings server:
|
|
|
|
|
|
|
|
===========
|
|
|
|
``server:``
|
|
|
|
===========
|
|
|
|
|
|
|
|
.. code:: yaml
|
|
|
|
|
|
|
|
server:
|
|
|
|
base_url: http://example.org/location # change this!
|
|
|
|
port: 8888
|
|
|
|
bind_address: "127.0.0.1"
|
|
|
|
secret_key: "ultrasecretkey" # change this!
|
|
|
|
limiter: false
|
2023-10-02 16:29:58 +00:00
|
|
|
public_instance: false
|
2023-06-30 16:07:02 +00:00
|
|
|
image_proxy: false
|
|
|
|
default_http_headers:
|
|
|
|
X-Content-Type-Options : nosniff
|
|
|
|
X-Download-Options : noopen
|
|
|
|
X-Robots-Tag : noindex, nofollow
|
|
|
|
Referrer-Policy : no-referrer
|
|
|
|
|
2024-01-07 17:33:34 +00:00
|
|
|
``base_url`` : ``$SEARXNG_URL``
|
2023-06-30 16:07:02 +00:00
|
|
|
The base URL where SearXNG is deployed. Used to create correct inbound links.
|
|
|
|
|
2024-01-07 17:33:34 +00:00
|
|
|
``port`` & ``bind_address``: ``$SEARXNG_PORT`` & ``$SEARXNG_BIND_ADDRESS``
|
2023-06-30 16:07:02 +00:00
|
|
|
Port number and *bind address* of the SearXNG web application if you run it
|
|
|
|
directly using ``python searx/webapp.py``. Doesn't apply to a SearXNG
|
2024-01-07 17:33:34 +00:00
|
|
|
services running behind a proxy and using socket communications.
|
2023-06-30 16:07:02 +00:00
|
|
|
|
|
|
|
``secret_key`` : ``$SEARXNG_SECRET``
|
|
|
|
Used for cryptography purpose.
|
|
|
|
|
2024-06-14 12:52:31 +00:00
|
|
|
``limiter`` : ``$SEARXNG_LIMITER``
|
2023-06-30 16:07:02 +00:00
|
|
|
Rate limit the number of request on the instance, block some bots. The
|
2023-10-02 14:36:07 +00:00
|
|
|
:ref:`limiter` requires a :ref:`settings redis` database.
|
2023-06-30 16:07:02 +00:00
|
|
|
|
2023-10-02 16:29:58 +00:00
|
|
|
.. _public_instance:
|
|
|
|
|
2024-06-14 12:52:31 +00:00
|
|
|
``public_instance`` : ``$SEARXNG_PUBLIC_INSTANCE``
|
2023-10-02 16:29:58 +00:00
|
|
|
|
|
|
|
Setting that allows to enable features specifically for public instances (not
|
|
|
|
needed for local usage). By set to ``true`` the following features are
|
|
|
|
activated:
|
|
|
|
|
|
|
|
- :py:obj:`searx.botdetection.link_token` in the :ref:`limiter`
|
|
|
|
|
2023-06-30 16:07:02 +00:00
|
|
|
.. _image_proxy:
|
|
|
|
|
2024-06-14 12:52:31 +00:00
|
|
|
``image_proxy`` : ``$SEARXNG_IMAGE_PROXY``
|
2023-06-30 16:07:02 +00:00
|
|
|
Allow your instance of SearXNG of being able to proxy images. Uses memory space.
|
|
|
|
|
|
|
|
.. _HTTP headers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
|
|
|
|
|
|
|
|
``default_http_headers`` :
|
|
|
|
Set additional HTTP headers, see `#755 <https://github.com/searx/searx/issues/715>`__
|
|
|
|
|