settings_server.rst 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. default_http_headers:
  15. X-Content-Type-Options : nosniff
  16. X-Download-Options : noopen
  17. X-Robots-Tag : noindex, nofollow
  18. Referrer-Policy : no-referrer
  19. ``base_url`` : ``$SEARXNG_URL``
  20. The base URL where SearXNG is deployed. Used to create correct inbound links.
  21. ``port`` & ``bind_address``: ``$SEARXNG_PORT`` & ``$SEARXNG_BIND_ADDRESS``
  22. Port number and *bind address* of the SearXNG web application if you run it
  23. directly using ``python searx/webapp.py``. Doesn't apply to a SearXNG
  24. services running behind a proxy and using socket communications.
  25. ``secret_key`` : ``$SEARXNG_SECRET``
  26. Used for cryptography purpose.
  27. ``limiter`` : ``$SEARXNG_LIMITER``
  28. Rate limit the number of request on the instance, block some bots. The
  29. :ref:`limiter` requires a :ref:`settings redis` database.
  30. .. _public_instance:
  31. ``public_instance`` : ``$SEARXNG_PUBLIC_INSTANCE``
  32. Setting that allows to enable features specifically for public instances (not
  33. needed for local usage). By set to ``true`` the following features are
  34. activated:
  35. - :py:obj:`searx.botdetection.link_token` in the :ref:`limiter`
  36. .. _image_proxy:
  37. ``image_proxy`` : ``$SEARXNG_IMAGE_PROXY``
  38. Allow your instance of SearXNG of being able to proxy images. Uses memory space.
  39. .. _HTTP headers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
  40. ``default_http_headers`` :
  41. Set additional HTTP headers, see `#755 <https://github.com/searx/searx/issues/715>`__