settings_server.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. image_proxy: false
  13. default_http_headers:
  14. X-Content-Type-Options : nosniff
  15. X-XSS-Protection : 1; mode=block
  16. X-Download-Options : noopen
  17. X-Robots-Tag : noindex, nofollow
  18. Referrer-Policy : no-referrer
  19. ``base_url`` : ``$SEARXNG_URL`` :ref:`buildenv <make buildenv>`
  20. The base URL where SearXNG is deployed. Used to create correct inbound links.
  21. If you change the value, don't forget to rebuild instance's environment
  22. (:ref:`utils/brand.env <make buildenv>`)
  23. ``port`` & ``bind_address``: ``$SEARXNG_PORT`` & ``$SEARXNG_BIND_ADDRESS`` :ref:`buildenv <make buildenv>`
  24. Port number and *bind address* of the SearXNG web application if you run it
  25. directly using ``python searx/webapp.py``. Doesn't apply to a SearXNG
  26. services running behind a proxy and using socket communications. If you
  27. change the value, don't forget to rebuild instance's environment
  28. (:ref:`utils/brand.env <make buildenv>`)
  29. ``secret_key`` : ``$SEARXNG_SECRET``
  30. Used for cryptography purpose.
  31. .. _limiter:
  32. ``limiter`` :
  33. Rate limit the number of request on the instance, block some bots. The
  34. :ref:`limiter src` requires a :ref:`settings redis` database.
  35. .. _image_proxy:
  36. ``image_proxy`` :
  37. Allow your instance of SearXNG of being able to proxy images. Uses memory space.
  38. .. _HTTP headers: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
  39. ``default_http_headers`` :
  40. Set additional HTTP headers, see `#755 <https://github.com/searx/searx/issues/715>`__