summaryrefslogtreecommitdiff
path: root/utils/templates
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-06 14:47:00 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-06 14:47:00 +0100
commit387c6a77691fec514704bdf178b9ab94ad4abb40 (patch)
treed44960cfb5641e6dd36d51fe6bc0917127bc8845 /utils/templates
parentcbc08fdc26e96bf2cb02b76a30be095f5f60df9f (diff)
downloadsearxng-387c6a77691fec514704bdf178b9ab94ad4abb40.tar.gz
searxng-387c6a77691fec514704bdf178b9ab94ad4abb40.zip
docs: improve description of uwsgi & ngingx setup
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/templates')
-rw-r--r--utils/templates/etc/uwsgi/apps-archlinux/searx.ini20
-rw-r--r--utils/templates/etc/uwsgi/apps-available/searx.ini20
2 files changed, 34 insertions, 6 deletions
diff --git a/utils/templates/etc/uwsgi/apps-archlinux/searx.ini b/utils/templates/etc/uwsgi/apps-archlinux/searx.ini
index 78ad50443..f96554060 100644
--- a/utils/templates/etc/uwsgi/apps-archlinux/searx.ini
+++ b/utils/templates/etc/uwsgi/apps-archlinux/searx.ini
@@ -57,10 +57,24 @@ virtualenv = ${SEARX_PYENV}
pythonpath = ${SEARX_SRC}
-# plugin http
-# -----------
+# speak to upstream
+# -----------------
#
-# https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
+# Activate the 'http' configuration for filtron or activate the 'socket'
+# configuration if you setup your HTTP server to use uWSGI protocol via sockets.
+# using IP:
+#
+# https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
# Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
+
http = ${SEARX_INTERNAL_URL}
+
+# using unix-sockets:
+#
+# On some distributions you need to create the app folder for the sockets::
+#
+# mkdir -p /run/uwsgi/app/searx/socket
+# chmod -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx/socket
+#
+# socket = /run/uwsgi/app/searx/socket \ No newline at end of file
diff --git a/utils/templates/etc/uwsgi/apps-available/searx.ini b/utils/templates/etc/uwsgi/apps-available/searx.ini
index bc62e5864..4f8674012 100644
--- a/utils/templates/etc/uwsgi/apps-available/searx.ini
+++ b/utils/templates/etc/uwsgi/apps-available/searx.ini
@@ -56,10 +56,24 @@ virtualenv = ${SEARX_PYENV}
pythonpath = ${SEARX_SRC}
-# plugin http
-# -----------
+# speak to upstream
+# -----------------
#
-# https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
+# Activate the 'http' configuration for filtron or activate the 'socket'
+# configuration if you setup your HTTP server to use uWSGI protocol via sockets.
+# using IP:
+#
+# https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
# Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
+
http = ${SEARX_INTERNAL_URL}
+
+# using unix-sockets:
+#
+# On some distributions you need to create the app folder for the sockets::
+#
+# mkdir -p /run/uwsgi/app/searx/socket
+# chmod -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx/socket
+#
+# socket = /run/uwsgi/app/searx/socket \ No newline at end of file