mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
67274e1566
commit
3b6f4d0df3
@ -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')
|
||||
|
||||
|
||||
|
||||
@ -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 |
Loading…
x
Reference in New Issue
Block a user