mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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')
|
'uwsgi/apps-available/searx.ini')
|
||||||
destination = '/etc/uwsgi/apps-available/'
|
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)
|
shutil.copy(example_config, destination)
|
||||||
action_utils.webserver_enable('uwsgi', kind='module')
|
action_utils.webserver_enable('uwsgi', kind='module')
|
||||||
|
|
||||||
@ -83,9 +83,9 @@ def subcommand_setup(_):
|
|||||||
|
|
||||||
def subcommand_enable(_):
|
def subcommand_enable(_):
|
||||||
"""Enable web configuration and reload."""
|
"""Enable web configuration and reload."""
|
||||||
# TODO Write action_utils functions for enable/disable uwsgi
|
if not os.path.exists('/etc/uwsgi/apps-enabled/searx.ini'):
|
||||||
os.symlink('/etc/uwsgi/apps-available/searx.ini',
|
os.symlink('/etc/uwsgi/apps-available/searx.ini',
|
||||||
'/etc/uwsgi/apps-enabled/')
|
'/etc/uwsgi/apps-enabled/searx.ini')
|
||||||
action_utils.webserver_enable('searx-freedombox')
|
action_utils.webserver_enable('searx-freedombox')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
<Location /searx>
|
<Location /searx/>
|
||||||
Options FollowSymLinks Indexes
|
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
|
||||||
SetHandler uwsgi-handler
|
|
||||||
uWSGISocket /run/uwsgi/app/searx/socket
|
|
||||||
</Location>
|
</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