mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
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:
parent
3b6f4d0df3
commit
d42492d4df
@ -1,4 +1,10 @@
|
|||||||
<Location /searx/>
|
<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/
|
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth import action_utils, actions, frontpage
|
from plinth import action_utils, actions, frontpage
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
|
from plinth.modules.users import register_group
|
||||||
|
|
||||||
from .manifest import clients
|
from .manifest import clients
|
||||||
|
|
||||||
@ -49,6 +50,8 @@ description = [
|
|||||||
'It stores no cookies by default.')
|
'It stores no cookies by default.')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
group = ('web-search', _('Search the web'))
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
|
|
||||||
@ -57,6 +60,7 @@ def init():
|
|||||||
menu = main_menu.get('apps')
|
menu = main_menu.get('apps')
|
||||||
menu.add_urlname(name, 'glyphicon-search', 'searx:index',
|
menu.add_urlname(name, 'glyphicon-search', 'searx:index',
|
||||||
short_description)
|
short_description)
|
||||||
|
register_group(group)
|
||||||
|
|
||||||
global service
|
global service
|
||||||
setup_helper = globals()['setup_helper']
|
setup_helper = globals()['setup_helper']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user