mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 05:39:22 +02:00
[enh] settings.yml: implement general.enable_metrics
* allow not to record metrics (response time, etc...) * this commit doesn't change the UI. If the metrics are disabled /stats and /stats/errors will return empty response. in /preferences, the columns response time and reliability will be empty.
This commit is contained in:
parent
a7199bc085
commit
2134703b4b
8 changed files with 35 additions and 11 deletions
|
@ -142,6 +142,7 @@ SCHEMA = {
|
|||
'debug': SettingsValue(bool, False, 'SEARXNG_DEBUG'),
|
||||
'instance_name': SettingsValue(str, 'SearXNG'),
|
||||
'contact_url': SettingsValue((None, False, str), None),
|
||||
'enable_metrics': SettingsValue(bool, True),
|
||||
},
|
||||
'brand': {
|
||||
'issue_url': SettingsValue(str, 'https://github.com/searxng/searxng/issues'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue