searx: Update Apache configuration and icon

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 19:50:14 +05:30 committed by Sunil Mohan Adapa
parent 67274e1566
commit 3b6f4d0df3
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
3 changed files with 8 additions and 9 deletions

View File

@ -53,7 +53,7 @@ def _copy_uwsgi_configuration():
'uwsgi/apps-available/searx.ini')
destination = '/etc/uwsgi/apps-available/'
if not os.path.exists(destination):
if not os.path.exists(os.path.join(destination, 'searx.ini')):
shutil.copy(example_config, destination)
action_utils.webserver_enable('uwsgi', kind='module')
@ -83,9 +83,9 @@ def subcommand_setup(_):
def subcommand_enable(_):
"""Enable web configuration and reload."""
# TODO Write action_utils functions for enable/disable uwsgi
os.symlink('/etc/uwsgi/apps-available/searx.ini',
'/etc/uwsgi/apps-enabled/')
if not os.path.exists('/etc/uwsgi/apps-enabled/searx.ini'):
os.symlink('/etc/uwsgi/apps-available/searx.ini',
'/etc/uwsgi/apps-enabled/searx.ini')
action_utils.webserver_enable('searx-freedombox')

View File

@ -1,5 +1,4 @@
<Location /searx>
Options FollowSymLinks Indexes
SetHandler uwsgi-handler
uWSGISocket /run/uwsgi/app/searx/socket
</Location>
<Location /searx/>
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
</Location>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB