summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2020-02-01 11:01:17 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2020-02-08 11:47:39 +0100
commit99435381a84072b110c32004b2fb778af9b96f77 (patch)
tree9ad5fd222e6717312ef05dbcd871ef46a97857e5 /searx/templates
parentf9c7a678d273c55a0e8a1a7a2dbfd696b2046e60 (diff)
downloadsearxng-99435381a84072b110c32004b2fb778af9b96f77.tar.gz
searxng-99435381a84072b110c32004b2fb778af9b96f77.zip
[enh] introduce private engines
This PR adds a new setting to engines named `tokens`. It expects a list of tokens which lets searx validate if the request should be accepted or not.
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/oscar/preferences.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index 1a484dd4b..b03929df3 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -131,6 +131,12 @@
{% endfor %}
</select>
{{ preferences_item_footer(info, label, rtl) }}
+
+ {% set label = _('Engine tokens') %}
+ {% set info = _('Access tokens for private engines') %}
+ {{ preferences_item_header(info, label, rtl) }}
+ <input class="form-control" id='tokens' name='tokens' value='{{ preferences.tokens.get_value() }}'/>
+ {{ preferences_item_footer(info, label, rtl) }}
</div>
</fieldset>
</div>