summaryrefslogtreecommitdiff
path: root/searx/settings_defaults.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-07-02 11:29:21 +0200
committerAlexandre Flament <alex@al-f.net>2022-07-02 11:29:21 +0200
commitf8f239fe1fb0439635086713e9fd2a14d35a70ed (patch)
tree4141e30cc51f18ca505aaf2e19e42227a74a9aa2 /searx/settings_defaults.py
parentda416511b56b6174025656d8431951eb46b1a73b (diff)
downloadsearxng-f8f239fe1fb0439635086713e9fd2a14d35a70ed.tar.gz
searxng-f8f239fe1fb0439635086713e9fd2a14d35a70ed.zip
Donation link: default value to searxng.org, can be hidden or custom
Add a new setting: general.donation_url By default the value is https://docs.searxng.org/donate.html When the value is false, the link is hidden When the value is true, the link goes to the infopage donation, the administrator can create a custom page.
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r--searx/settings_defaults.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
index ccbbbf287..d951624cd 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -142,6 +142,7 @@ SCHEMA = {
'instance_name': SettingsValue(str, 'SearXNG'),
'privacypolicy_url': SettingsValue((None, False, str), None),
'contact_url': SettingsValue((None, False, str), None),
+ 'donation_url': SettingsValue((bool, str), "https://docs.searxng.org/donate.html"),
'enable_metrics': SettingsValue(bool, True),
},
'brand': {