settings_server.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. .. _server.secret_key:
  27. ``secret_key`` : ``$SEARXNG_SECRET``
  28. Used for cryptography purpose.
  29. ``limiter`` : ``$SEARXNG_LIMITER``
  30. Rate limit the number of request on the instance, block some bots. The
  31. :ref:`limiter` requires a :ref:`settings redis` database.
  32. .. _public_instance:
  33. ``public_instance`` : ``$SEARXNG_PUBLIC_INSTANCE``
  34. Setting that allows to enable features specifically for public instances (not
  35. needed for local usage). By set to ``true`` the following features are
  36. activated:
  37. - :py:obj:`searx.botdetection.link_token` in the :ref:`limiter`
  38. .. _image_proxy:
  39. ``image_proxy`` : ``$SEARXNG_IMAGE_PROXY``
  40. Allow your instance of SearXNG of being able to proxy images. Uses memory space.
  41. .. _method:
  42. ``method`` : ``$SEARXNG_METHOD``
  43. Whether to use ``GET`` or ``POST`` HTTP method when searching.
  44. .. _HTTP headers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
  45. ``default_http_headers`` :
  46. Set additional HTTP headers, see `#755 <https://github.com/searx/searx/issues/715>`__