mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 04:01:40 +01:00
[fix] socket in SearXNG's uWSGI app (searxng.ini)
Use SEARX_UWSGI_SOCKET in uWSGI systemd service Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
e48e2a9914
commit
5eedd5b72a
@ -31,7 +31,7 @@ SEARX_SRC="${SERVICE_HOME}/searx-src"
|
||||
SEARXNG_SETTINGS_PATH="/etc/searxng/settings.yml"
|
||||
SEARXNG_UWSGI_APP="searxng.ini"
|
||||
# shellcheck disable=SC2034
|
||||
SEARX_UWSGI_SOCKET="/run/uwsgi/app/searx/socket"
|
||||
SEARX_UWSGI_SOCKET="/run/uwsgi/app/searxng/socket"
|
||||
|
||||
# apt packages
|
||||
SEARX_PACKAGES_debian="\
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- mode: conf; coding: utf-8 -*-
|
||||
[uwsgi]
|
||||
|
||||
# uWSGI core
|
||||
@ -79,10 +80,10 @@ http = ${SEARX_INTERNAL_HTTP}
|
||||
#
|
||||
# On some distributions you need to create the app folder for the sockets::
|
||||
#
|
||||
# mkdir -p /run/uwsgi/app/searx
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx
|
||||
# mkdir -p ${SEARX_UWSGI_SOCKET}
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} ${SEARX_UWSGI_SOCKET}
|
||||
#
|
||||
# socket = /run/uwsgi/app/searx/socket
|
||||
# socket = ${SEARX_UWSGI_SOCKET}
|
||||
|
||||
# Cache
|
||||
cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- mode: conf; coding: utf-8 -*-
|
||||
[uwsgi]
|
||||
|
||||
# uWSGI core
|
||||
@ -79,7 +80,7 @@ pythonpath = ${SEARX_SRC}
|
||||
#
|
||||
# On some distributions you need to create the app folder for the sockets::
|
||||
#
|
||||
# mkdir -p /run/uwsgi/app/searx
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx
|
||||
# mkdir -p ${SEARX_UWSGI_SOCKET}
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} ${SEARX_UWSGI_SOCKET}
|
||||
#
|
||||
socket = /run/uwsgi/app/searx/socket
|
||||
socket = ${SEARX_UWSGI_SOCKET}
|
@ -1,3 +1,4 @@
|
||||
# -*- mode: conf; coding: utf-8 -*-
|
||||
[uwsgi]
|
||||
|
||||
# uWSGI core
|
||||
@ -78,10 +79,10 @@ http = ${SEARX_INTERNAL_HTTP}
|
||||
#
|
||||
# On some distributions you need to create the app folder for the sockets::
|
||||
#
|
||||
# mkdir -p /run/uwsgi/app/searx
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx
|
||||
# mkdir -p /run/uwsgi/app/searxng
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} ${SEARX_UWSGI_SOCKET}
|
||||
#
|
||||
# socket = /run/uwsgi/app/searx/socket
|
||||
# socket = ${SEARX_UWSGI_SOCKET}
|
||||
|
||||
# Cache
|
||||
cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- mode: conf; coding: utf-8 -*-
|
||||
[uwsgi]
|
||||
|
||||
# uWSGI core
|
||||
@ -78,7 +79,7 @@ pythonpath = ${SEARX_SRC}
|
||||
#
|
||||
# On some distributions you need to create the app folder for the sockets::
|
||||
#
|
||||
# mkdir -p /run/uwsgi/app/searx
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx
|
||||
# mkdir -p ${SEARX_UWSGI_SOCKET}
|
||||
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} ${SEARX_UWSGI_SOCKET}
|
||||
#
|
||||
socket = /run/uwsgi/app/searx/socket
|
||||
socket = ${SEARX_UWSGI_SOCKET}
|
Loading…
Reference in New Issue
Block a user