settings_ui.rst 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .. _settings ui:
  2. =======
  3. ``ui:``
  4. =======
  5. .. _cache busting:
  6. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#caching_static_assets_with_cache_busting
  7. .. code:: yaml
  8. ui:
  9. static_use_hash: false
  10. default_locale: ""
  11. query_in_title: false
  12. infinite_scroll: false
  13. center_alignment: false
  14. cache_url: https://web.archive.org/web/
  15. default_theme: simple
  16. theme_args:
  17. simple_style: auto
  18. search_on_category_select: true
  19. hotkeys: default
  20. url_formatting: pretty
  21. .. _static_use_hash:
  22. ``static_use_hash`` : ``$SEARXNG_STATIC_USE_HASH``
  23. Enables `cache busting`_ of static files.
  24. ``default_locale`` :
  25. SearXNG interface language. If blank, the locale is detected by using the
  26. browser language. If it doesn't work, or you are deploying a language
  27. specific instance of searx, a locale can be defined using an ISO language
  28. code, like ``fr``, ``en``, ``de``.
  29. ``query_in_title`` :
  30. When true, the result page's titles contains the query it decreases the
  31. privacy, since the browser can records the page titles.
  32. ``infinite_scroll``:
  33. When true, automatically loads the next page when scrolling to bottom of the current page.
  34. ``center_alignment`` : default ``false``
  35. When enabled, the results are centered instead of being in the left (or RTL)
  36. side of the screen. This setting only affects the *desktop layout*
  37. (:origin:`min-width: @tablet <searx/static/themes/simple/src/less/definitions.less>`)
  38. .. cache_url:
  39. ``cache_url`` : ``https://web.archive.org/web/``
  40. URL prefix of the internet archive or cache, don't forget trailing slash (if
  41. needed). The default is https://web.archive.org/web/ alternatives are:
  42. - https://webcache.googleusercontent.com/search?q=cache:
  43. - https://archive.today/
  44. ``default_theme`` :
  45. Name of the theme you want to use by default on your SearXNG instance.
  46. ``theme_args.simple_style``:
  47. Style of simple theme: ``auto``, ``light``, ``dark``, ``black``
  48. ``results_on_new_tab``:
  49. Open result links in a new tab by default.
  50. ``search_on_category_select``:
  51. Perform search immediately if a category selected. Disable to select multiple categories.
  52. ``hotkeys``:
  53. Hotkeys to use in the search interface: ``default``, ``vim`` (Vim-like).
  54. ``url_formatting``:
  55. Formatting type to use for result URLs: ``pretty``, ``full`` or ``host``.