21
2025
03
15:01:24

searxng settings-use-default-settings

https://docs.searxng.org/admin/settings/settings.html#settings-use-default-settings


settings.yml location

The initial settings.yml we be load from these locations:

  1. the full path specified in the SEARXNG_SETTINGS_PATH environment variable.

  2. /etc/searxng/settings.yml

If these files don’t exist (or are empty or can’t be read), SearXNG uses the git://searx/settings.yml file. Read use_default_settings to see how you can simplify your user defined settings.yml.

use_default_settings

The user defined settings.yml is loaded from the settings.yml location and can relied on the default configuration git://searx/settings.yml using:

use_default_settings: true

  • server:

  • In the following example, the actual settings are the default settings defined in git://searx/settings.yml with the exception of the secret_key and the bind_address:

    use_default_settings: trueserver:    secret_key: "ultrasecretkey"   # change this!    bind_address: "[::]"
  • engines:

  • With use_default_settings: true, each settings can be override in a similar way, the engines section is merged according to the engine name. In this example, SearXNG will load all the default engines, will enable the bing engine and define a token for the arch linux engine:

    use_default_settings: trueserver:  secret_key: "ultrasecretkey"   # change this!engines:  - name: arch linux wiki    tokens: ['$ecretValue']  - name: bing    disabled: false
  • engines: / remove:

  • It is possible to remove some engines from the default settings. The following example is similar to the above one, but SearXNG doesn’t load the the google engine:

    use_default_settings:  engines:    remove:      - googleserver:  secret_key: "ultrasecretkey"   # change this!engines:  - name: arch linux wiki    tokens: ['$ecretValue']
  • engines: / keep_only:

  • As an alternative, it is possible to specify the engines to keep. In the following example, SearXNG has only two engines:

    use_default_settings:  engines:    keep_only:      - google      - duckduckgoserver:  secret_key: "ultrasecretkey"   # change this!engines:  - name: google    tokens: ['$ecretValue']  - name: duckduckgo    tokens: ['$ecretValue']




推荐本站淘宝优惠价购买喜欢的宝贝:

searxng  settings-use-default-settings

本文链接:https://hqyman.cn/post/9564.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: