1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-05 04:40:11 +01:00

[enh] add ability to set enabled plugins from settings - closes #1613 #778

This commit is contained in:
Adam Tauber 2020-10-09 14:11:19 +02:00
parent 830a2e5b93
commit a05c660e30
2 changed files with 13 additions and 0 deletions

View File

@ -172,3 +172,10 @@ plugins.register(vim_hotkeys)
# load external plugins
if 'plugins' in settings:
plugins.register(*settings['plugins'], external=True)
if 'enabled_plugins' in settings:
for plugin in plugins:
if plugin.name in settings['enabled_plugins']:
plugin.default_on = True
else:
plugin.default_on = False

View File

@ -67,6 +67,12 @@ outgoing: # communication with search engines
# - plugin2
# - ...
# uncomment below section if you want to configure which plugin is enabled by default
#
# enabled_plugins:
# - "HTTPS rewrite"
# - ...
engines:
- name: apk mirror
engine: apkmirror