settings_ui.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. .. _static_use_hash:
  19. ``static_use_hash`` :
  20. Enables `cache busting`_ of static files.
  21. ``default_locale`` :
  22. SearXNG interface language. If blank, the locale is detected by using the
  23. browser language. If it doesn't work, or you are deploying a language
  24. specific instance of searx, a locale can be defined using an ISO language
  25. code, like ``fr``, ``en``, ``de``.
  26. ``query_in_title`` :
  27. When true, the result page's titles contains the query it decreases the
  28. privacy, since the browser can records the page titles.
  29. ``infinite_scroll``:
  30. When true, automatically loads the next page when scrolling to bottom of the current page.
  31. ``center_alignment`` : default ``false``
  32. When enabled, the results are centered instead of being in the left (or RTL)
  33. side of the screen. This setting only affects the *desktop layout*
  34. (:origin:`min-width: @tablet <searx/static/themes/simple/src/less/definitions.less>`)
  35. .. cache_url:
  36. ``cache_url`` : ``https://web.archive.org/web/``
  37. URL prefix of the internet archive or cache, don't forget trailing slash (if
  38. needed). The default is https://web.archive.org/web/ alternatives are:
  39. - https://webcache.googleusercontent.com/search?q=cache:
  40. - https://archive.today/
  41. ``default_theme`` :
  42. Name of the theme you want to use by default on your SearXNG instance.
  43. ``theme_args.simple_style``:
  44. Style of simple theme: ``auto``, ``light``, ``dark``
  45. ``results_on_new_tab``:
  46. Open result links in a new tab by default.