From d42492d4dfb2e6541d37aef50bd91d00e6c592c4 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Wed, 21 Feb 2018 20:04:26 +0530 Subject: [PATCH] searx: Enable single sign on Signed-off-by: Joseph Nuthalapati Reviewed-by: Sunil Mohan Adapa --- data/etc/apache2/conf-available/searx-freedombox.conf | 6 ++++++ plinth/modules/searx/__init__.py | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/data/etc/apache2/conf-available/searx-freedombox.conf b/data/etc/apache2/conf-available/searx-freedombox.conf index 2435d475a..24a1b723e 100644 --- a/data/etc/apache2/conf-available/searx-freedombox.conf +++ b/data/etc/apache2/conf-available/searx-freedombox.conf @@ -1,4 +1,10 @@ + Include includes/freedombox-single-sign-on.conf + + + TKTAuthToken "web-search" "admin" + + ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/ diff --git a/plinth/modules/searx/__init__.py b/plinth/modules/searx/__init__.py index ca2f9c303..ee51d7058 100644 --- a/plinth/modules/searx/__init__.py +++ b/plinth/modules/searx/__init__.py @@ -25,6 +25,7 @@ from django.utils.translation import ugettext_lazy as _ from plinth import service as service_module from plinth import action_utils, actions, frontpage from plinth.menu import main_menu +from plinth.modules.users import register_group from .manifest import clients @@ -49,6 +50,8 @@ description = [ 'It stores no cookies by default.') ] +group = ('web-search', _('Search the web')) + service = None @@ -57,6 +60,7 @@ def init(): menu = main_menu.get('apps') menu.add_urlname(name, 'glyphicon-search', 'searx:index', short_description) + register_group(group) global service setup_helper = globals()['setup_helper']