Created
June 26, 2026 07:13
-
-
Save stylersnico/675c0db88927e7fc4968af7ccb71f49e to your computer and use it in GitHub Desktop.
SearXNG config for openwebui
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| general: | |
| # Debug mode, only for development. Is overwritten by ${SEARXNG_DEBUG} | |
| debug: false | |
| # displayed name | |
| instance_name: "SearXNG" | |
| # For example: https://example.com/privacy | |
| privacypolicy_url: false | |
| # use true to use your own donation page written in searx/info/en/donate.md | |
| # use false to disable the donation link | |
| donation_url: false | |
| # mailto:contact@example.com | |
| contact_url: false | |
| # record stats | |
| enable_metrics: true | |
| # expose stats in open metrics format at /metrics | |
| # leave empty to disable (no password set) | |
| # open_metrics: <password> | |
| open_metrics: '' | |
| brand: | |
| docs_url: https://docs.searxng.org/ | |
| public_instances: https://searx.space | |
| wiki_url: https://github.com/searxng/searxng/wiki | |
| issue_url: https://github.com/searxng/searxng/issues | |
| # custom: | |
| # # Custom entries in the footer: [title]: [link] | |
| # links: | |
| # Uptime: https://uptime.searxng.org/history/darmarit-org | |
| # About: "https://searxng.org" | |
| # pwa_colors: | |
| # # Custom settings for PWA icon an colors used in manifest.json | |
| # # Default colors are: | |
| # theme_color_light: "#3050ff" | |
| # background_color_light: "fff" | |
| # theme_color_dark: "#58f" | |
| # background_color_dark: "#222428" | |
| # theme_color_black: "#3050ff" | |
| # background_color_black: "#000" | |
| search: | |
| # Filter results. 0: None, 1: Moderate, 2: Strict | |
| safe_search: 0 | |
| # Existing autocomplete backends: "360search", "baidu", "bing", "brave", "dbpedia", "duckduckgo", "google", | |
| # "yandex", "mwmbl", "naver", "seznam", "sogou", "startpage", "swisscows", "quark", "qwant", "wikipedia" - | |
| # leave blank to turn it off by default. | |
| autocomplete: "" | |
| # minimun characters to type before autocompleter starts | |
| autocomplete_min: 4 | |
| # backend for the favicon near URL in search results. | |
| # Available resolvers: "allesedv", "duckduckgo", "google", "yandex" - leave blank to turn it off by default. | |
| favicon_resolver: "" | |
| # Default search language - leave blank to detect from browser information or | |
| # use codes from 'languages.py' | |
| default_lang: "auto" | |
| # max_page: 0 # if engine supports paging, 0 means unlimited numbers of pages | |
| # Available languages | |
| # languages: | |
| # - all | |
| # - en | |
| # - en-US | |
| # - de | |
| # - it-IT | |
| # - fr | |
| # - fr-BE | |
| # ban time in seconds after engine errors | |
| ban_time_on_fail: 5 | |
| # max ban time in seconds after engine errors | |
| max_ban_time_on_fail: 120 | |
| suspended_times: | |
| # Engine suspension time after error (in seconds; set to 0 to disable) | |
| # For error "Access denied" and "HTTP error [402, 403]" | |
| SearxEngineAccessDenied: 180 | |
| # For error "CAPTCHA" | |
| SearxEngineCaptcha: 3600 | |
| # For error "Too many request" and "HTTP error 429" | |
| SearxEngineTooManyRequests: 180 | |
| # Cloudflare CAPTCHA | |
| cf_SearxEngineCaptcha: 1296000 | |
| cf_SearxEngineAccessDenied: 86400 | |
| # ReCAPTCHA | |
| recaptcha_SearxEngineCaptcha: 604800 | |
| # remove format to deny access, use lower case. | |
| # formats: [html, csv, json, rss] | |
| formats: | |
| - html | |
| - json | |
| server: | |
| # Is overwritten by ${SEARXNG_PORT} and ${SEARXNG_BIND_ADDRESS} | |
| port: 8888 | |
| bind_address: "127.0.0.1" | |
| # public URL of the instance, to ensure correct inbound links. Is overwritten | |
| # by ${SEARXNG_BASE_URL}. | |
| base_url: false # "http://example.com/location" | |
| # rate limit the number of request on the instance, block some bots. | |
| # Is overwritten by ${SEARXNG_LIMITER} | |
| limiter: false | |
| # enable features designed only for public instances. | |
| # Is overwritten by ${SEARXNG_PUBLIC_INSTANCE} | |
| public_instance: false | |
| # If your instance owns a /etc/searxng/settings.yml file, then set the following | |
| # values there. | |
| secret_key: "bPzTvoq7qQqlRNuwSJHHHykaeXGx6I" # Is overwritten by ${SEARXNG_SECRET} | |
| # Proxy image results through SearXNG. Is overwritten by ${SEARXNG_IMAGE_PROXY} | |
| image_proxy: false | |
| # 1.0 and 1.1 are supported | |
| http_protocol_version: "1.0" | |
| # POST queries are "more secure!" but are also the source of hard-to-locate | |
| # annoyances, which is why GET may be better for end users and their browsers. | |
| # see https://github.com/searxng/searxng/pull/3619 | |
| # Is overwritten by ${SEARXNG_METHOD} | |
| method: "POST" | |
| default_http_headers: | |
| X-Content-Type-Options: nosniff | |
| X-Download-Options: noopen | |
| X-Robots-Tag: noindex, nofollow | |
| Referrer-Policy: no-referrer | |
| valkey: | |
| # URL to connect valkey database. Is overwritten by ${SEARXNG_VALKEY_URL}. | |
| # https://docs.searxng.org/admin/settings/settings_valkey.html#settings-valkey | |
| # url: valkey://localhost:6379/0 | |
| url: false | |
| ui: | |
| # Custom static path - leave it blank if you didn't change | |
| static_path: "" | |
| # Custom templates path - leave it blank if you didn't change | |
| templates_path: "" | |
| # query_in_title: When true, the result page's titles contains the query | |
| # it decreases the privacy, since the browser can records the page titles. | |
| query_in_title: false | |
| # ui theme | |
| default_theme: simple | |
| # center the results ? | |
| center_alignment: false | |
| # URL prefix of the internet archive, don't forget trailing slash (if needed). | |
| # cache_url: "https://webcache.googleusercontent.com/search?q=cache:" | |
| # Default interface locale - leave blank to detect from browser information or | |
| # use codes from the 'locales' config section | |
| default_locale: "" | |
| # Open result links in a new tab by default | |
| # results_on_new_tab: false | |
| theme_args: | |
| # style of simple theme: auto, light, dark, black | |
| simple_style: auto | |
| # Perform search immediately if a category selected. | |
| # Disable to select multiple categories at once and start the search manually. | |
| search_on_category_select: true | |
| # Hotkeys: default or vim | |
| hotkeys: default | |
| # URL formatting: pretty, full or host | |
| url_formatting: pretty | |
| # Lock arbitrary settings on the preferences page. | |
| # | |
| # preferences: | |
| # lock: | |
| # - categories | |
| # - language | |
| # - autocomplete | |
| # - favicon | |
| # - safesearch | |
| # - method | |
| # - doi_resolver | |
| # - locale | |
| # - theme | |
| # - results_on_new_tab | |
| # - search_on_category_select | |
| # - method | |
| # - image_proxy | |
| # - query_in_title | |
| # communication with search engines | |
| # | |
| outgoing: | |
| # default timeout in seconds, can be override by engine | |
| request_timeout: 3.0 | |
| # the maximum timeout in seconds | |
| # max_request_timeout: 10.0 | |
| # suffix of searxng_useragent, could contain information like an email address | |
| # to the administrator | |
| useragent_suffix: "" | |
| # The maximum number of concurrent connections that may be established. | |
| pool_connections: 100 | |
| # Allow the connection pool to maintain keep-alive connections below this | |
| # point. | |
| pool_maxsize: 20 | |
| # See https://www.python-httpx.org/http2/ | |
| enable_http2: true | |
| # uncomment below section if you want to use a custom server certificate | |
| # see https://www.python-httpx.org/advanced/#changing-the-verification-defaults | |
| # and https://www.python-httpx.org/compatibility/#ssl-configuration | |
| # verify: ~/.mitmproxy/mitmproxy-ca-cert.cer | |
| # | |
| # uncomment below section if you want to use a proxyq see: SOCKS proxies | |
| # https://2.python-requests.org/en/latest/user/advanced/#proxies | |
| # are also supported: see | |
| # https://2.python-requests.org/en/latest/user/advanced/#socks | |
| # | |
| # proxies: | |
| # all://: | |
| # - http://proxy1:8080 | |
| # - http://proxy2:8080 | |
| # | |
| # using_tor_proxy: true | |
| # | |
| # Extra seconds to add in order to account for the time taken by the proxy | |
| # | |
| # extra_proxy_timeout: 10 | |
| # | |
| # uncomment below section only if you have more than one network interface | |
| # which can be the source of outgoing search requests | |
| # | |
| # source_ips: | |
| # - 1.1.1.1 | |
| # - 1.1.1.2 | |
| # - fe80::/126 | |
| # Plugin configuration, for more details see | |
| # https://docs.searxng.org/admin/settings/settings_plugins.html | |
| # | |
| plugins: | |
| searx.plugins.calculator.SXNGPlugin: | |
| active: true | |
| searx.plugins.infinite_scroll.SXNGPlugin: | |
| active: false | |
| searx.plugins.hash_plugin.SXNGPlugin: | |
| active: true | |
| searx.plugins.self_info.SXNGPlugin: | |
| active: true | |
| searx.plugins.unit_converter.SXNGPlugin: | |
| active: true | |
| searx.plugins.ahmia_filter.SXNGPlugin: | |
| active: true | |
| searx.plugins.hostnames.SXNGPlugin: | |
| active: true | |
| searx.plugins.time_zone.SXNGPlugin: | |
| active: true | |
| searx.plugins.oa_doi_rewrite.SXNGPlugin: | |
| active: false | |
| searx.plugins.tor_check.SXNGPlugin: | |
| active: false | |
| searx.plugins.tracker_url_remover.SXNGPlugin: | |
| active: true | |
| # Configuration of the "Hostnames plugin": | |
| # | |
| # hostnames: | |
| # replace: | |
| # '(.*\.)?youtube\.com$': 'yt.example.com' | |
| # '(.*\.)?youtu\.be$': 'yt.example.com' | |
| # '(.*\.)?reddit\.com$': 'teddit.example.com' | |
| # '(.*\.)?redd\.it$': 'teddit.example.com' | |
| # '(www\.)?twitter\.com$': 'nitter.example.com' | |
| # remove: | |
| # - '(.*\.)?facebook.com$' | |
| # low_priority: | |
| # - '(.*\.)?google(\..*)?$' | |
| # high_priority: | |
| # - '(.*\.)?wikipedia.org$' | |
| # | |
| # Alternatively you can use external files for configuring the "Hostnames plugin": | |
| # | |
| # hostnames: | |
| # replace: 'rewrite-hosts.yml' | |
| # | |
| # Content of 'rewrite-hosts.yml' (place the file in the same directory as 'settings.yml'): | |
| # '(.*\.)?youtube\.com$': 'yt.example.com' | |
| # '(.*\.)?youtu\.be$': 'yt.example.com' | |
| # | |
| categories_as_tabs: | |
| general: | |
| images: | |
| videos: | |
| news: | |
| map: | |
| music: | |
| it: | |
| science: | |
| files: | |
| social media: | |
| engines: | |
| - name: google | |
| engine: google | |
| shortcut: go | |
| - name: google images | |
| engine: google_images | |
| shortcut: goi | |
| - name: google news | |
| engine: google_news | |
| shortcut: gon | |
| - name: google videos | |
| engine: google_videos | |
| shortcut: gov | |
| - name: google scholar | |
| engine: google_scholar | |
| shortcut: gos | |
| # Doku engine lets you access to any Doku wiki instance: | |
| # A public one or a privete/corporate one. | |
| # - name: ubuntuwiki | |
| # engine: doku | |
| # shortcut: uw | |
| # base_url: 'https://doc.ubuntu-fr.org' | |
| # Be careful when enabling this engine if you are | |
| # running a public instance. Do not expose any sensitive | |
| # information. You can restrict access by configuring a list | |
| # of access tokens under tokens. | |
| # - name: git grep | |
| # engine: command | |
| # command: ['git', 'grep', '{{QUERY}}'] | |
| # shortcut: gg | |
| # tokens: [] | |
| # disabled: true | |
| # delimiter: | |
| # chars: ':' | |
| # keys: ['filepath', 'code'] | |
| # Be careful when enabling this engine if you are | |
| # running a public instance. Do not expose any sensitive | |
| # information. You can restrict access by configuring a list | |
| # of access tokens under tokens. | |
| # - name: locate | |
| # engine: command | |
| # command: ['locate', '{{QUERY}}'] | |
| # shortcut: loc | |
| # tokens: [] | |
| # disabled: true | |
| # delimiter: | |
| # chars: ' ' | |
| # keys: ['line'] | |
| # Be careful when enabling this engine if you are | |
| # running a public instance. Do not expose any sensitive | |
| # information. You can restrict access by configuring a list | |
| # of access tokens under tokens. | |
| # - name: find | |
| # engine: command | |
| # command: ['find', '.', '-name', '{{QUERY}}'] | |
| # query_type: path | |
| # shortcut: fnd | |
| # tokens: [] | |
| # disabled: true | |
| # delimiter: | |
| # chars: ' ' | |
| # keys: ['line'] | |
| # Be careful when enabling this engine if you are | |
| # running a public instance. Do not expose any sensitive | |
| # information. You can restrict access by configuring a list | |
| # of access tokens under tokens. | |
| # - name: pattern search in files | |
| # engine: command | |
| # command: ['fgrep', '{{QUERY}}'] | |
| # shortcut: fgr | |
| # tokens: [] | |
| # disabled: true | |
| # delimiter: | |
| # chars: ' ' | |
| # keys: ['line'] | |
| # Be careful when enabling this engine if you are | |
| # running a public instance. Do not expose any sensitive | |
| # information. You can restrict access by configuring a list | |
| # of access tokens under tokens. | |
| # - name: regex search in files | |
| # engine: command | |
| # command: ['grep', '{{QUERY}}'] | |
| # shortcut: gr | |
| # tokens: [] | |
| # disabled: true | |
| # delimiter: | |
| # chars: ' ' | |
| # keys: ['line'] | |
| doi_resolvers: | |
| oadoi.org: 'https://oadoi.org/' | |
| doi.org: 'https://doi.org/' | |
| sci-hub.se: 'https://sci-hub.se/' | |
| sci-hub.st: 'https://sci-hub.st/' | |
| sci-hub.ru: 'https://sci-hub.ru/' | |
| default_doi_resolver: 'oadoi.org' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment