searx: Enable single sign on

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-21 20:04:26 +05:30 committed by Sunil Mohan Adapa
parent 3b6f4d0df3
commit d42492d4df
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,10 @@
<Location /searx/>
Include includes/freedombox-single-sign-on.conf
<IfModule mod_auth_pubtkt.c>
TKTAuthToken "web-search" "admin"
</IfModule>
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
</Location>

View File

@ -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']