settings_server.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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`` :ref:`buildenv <make buildenv>`
  21. The base URL where SearXNG is deployed. Used to create correct inbound links.
  22. If you change the value, don't forget to rebuild instance's environment
  23. (:ref:`utils/brand.env <make buildenv>`)
  24. ``port`` & ``bind_address``: ``$SEARXNG_PORT`` & ``$SEARXNG_BIND_ADDRESS`` :ref:`buildenv <make buildenv>`
  25. Port number and *bind address* of the SearXNG web application if you run it
  26. directly using ``python searx/webapp.py``. Doesn't apply to a SearXNG
  27. services running behind a proxy and using socket communications. If you
  28. change the value, don't forget to rebuild instance's environment
  29. (:ref:`utils/brand.env <make buildenv>`)
  30. ``secret_key`` : ``$SEARXNG_SECRET``
  31. Used for cryptography purpose.
  32. ``limiter`` :
  33. Rate limit the number of request on the instance, block some bots. The
  34. :ref:`limiter` requires a :ref:`settings redis` database.
  35. .. _public_instance:
  36. ``public_instance`` :
  37. Setting that allows to enable features specifically for public instances (not
  38. needed for local usage). By set to ``true`` the following features are
  39. activated:
  40. - :py:obj:`searx.botdetection.link_token` in the :ref:`limiter`
  41. .. _image_proxy:
  42. ``image_proxy`` :
  43. Allow your instance of SearXNG of being able to proxy images. Uses memory space.
  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>`__