settings_server.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .. _settings server:
  2. ===========
  3. ``server:``
  4. ===========
  5. .. code:: yaml
  6. server:
  7. base_url: http://example.org/location # change this!
  8. port: 8888
  9. bind_address: "127.0.0.1"
  10. secret_key: "ultrasecretkey" # change this!
  11. limiter: false
  12. public_instance: false
  13. image_proxy: false
  14. method: "POST"
  15. default_http_headers:
  16. X-Content-Type-Options : nosniff
  17. X-Download-Options : noopen
  18. X-Robots-Tag : noindex, nofollow
  19. Referrer-Policy : no-referrer
  20. ``base_url`` : ``$SEARXNG_BASE_URL``
  21. The base URL where SearXNG is deployed. Used to create correct inbound links.
  22. ``port`` & ``bind_address``: ``$SEARXNG_PORT`` & ``$SEARXNG_BIND_ADDRESS``
  23. Port number and *bind address* of the SearXNG web application if you run it
  24. directly using ``python searx/webapp.py``. Doesn't apply to a SearXNG
  25. services running behind a proxy and using socket communications.
  26. ``secret_key`` : ``$SEARXNG_SECRET``
  27. Used for cryptography purpose.
  28. ``limiter`` : ``$SEARXNG_LIMITER``
  29. Rate limit the number of request on the instance, block some bots. The
  30. :ref:`limiter` requires a :ref:`settings redis` database.
  31. .. _public_instance:
  32. ``public_instance`` : ``$SEARXNG_PUBLIC_INSTANCE``
  33. Setting that allows to enable features specifically for public instances (not
  34. needed for local usage). By set to ``true`` the following features are
  35. activated:
  36. - :py:obj:`searx.botdetection.link_token` in the :ref:`limiter`
  37. .. _image_proxy:
  38. ``image_proxy`` : ``$SEARXNG_IMAGE_PROXY``
  39. Allow your instance of SearXNG of being able to proxy images. Uses memory space.
  40. .. _method:
  41. ``method`` : ``$SEARXNG_METHOD``
  42. Whether to use ``GET`` or ``POST`` HTTP method when searching.
  43. .. _HTTP headers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
  44. ``default_http_headers`` :
  45. Set additional HTTP headers, see `#755 <https://github.com/searx/searx/issues/715>`__