searx: Allow Searx to be added as a search engine to Firefox

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2018-02-22 17:23:37 +05:30 committed by Sunil Mohan Adapa
parent 05715b4e64
commit 26a53e6649
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 11 additions and 1 deletions

View File

@ -101,6 +101,7 @@ def subcommand_setup(_):
_generate_secret_key(settings) _generate_secret_key(settings)
_set_title(settings) _set_title(settings)
_set_timeout(settings) _set_timeout(settings)
write_settings(settings)
action_utils.service_restart('uwsgi') action_utils.service_restart('uwsgi')

View File

@ -1,3 +1,13 @@
# This exclusion rule is to allow Searx to be added as a search engine in Firefox.
<Location ~ "/searx/(opensearch.xml|static/themes/oscar/img/favicon.png)">
Satisfy Any
Allow from all
AuthType None
Require all granted
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
</Location>
<Location /searx/> <Location /searx/>
Include includes/freedombox-single-sign-on.conf Include includes/freedombox-single-sign-on.conf
@ -7,4 +17,3 @@
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/ ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
</Location> </Location>