settings_server.rst 1.7 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-XSS-Protection : 1; mode=block
  17. X-Download-Options : noopen
  18. X-Robots-Tag : noindex, nofollow
  19. Referrer-Policy : no-referrer
  20. ``base_url`` : ``$SEARXNG_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`` :
  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`` :
  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`` :
  39. Allow your instance of SearXNG of being able to proxy images. Uses memory space.
  40. .. _HTTP headers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
  41. ``default_http_headers`` :
  42. Set additional HTTP headers, see `#755 <https://github.com/searx/searx/issues/715>`__