Update searxng/uwsgi.ini
Browse files- searxng/uwsgi.ini +50 -50
searxng/uwsgi.ini
CHANGED
|
@@ -1,50 +1,50 @@
|
|
| 1 |
-
[uwsgi]
|
| 2 |
-
# Who will run the code
|
| 3 |
-
uid = searxng
|
| 4 |
-
gid = searxng
|
| 5 |
-
|
| 6 |
-
# Number of workers (usually CPU count)
|
| 7 |
-
# default value: %k (= number of CPU core, see Dockerfile)
|
| 8 |
-
workers = %k
|
| 9 |
-
|
| 10 |
-
# Number of threads per worker
|
| 11 |
-
# default value: 4 (see Dockerfile)
|
| 12 |
-
threads = 4
|
| 13 |
-
|
| 14 |
-
# The right granted on the created socket
|
| 15 |
-
chmod-socket = 666
|
| 16 |
-
|
| 17 |
-
# Plugin to use and interpreter config
|
| 18 |
-
single-interpreter = true
|
| 19 |
-
master = true
|
| 20 |
-
plugin = python3
|
| 21 |
-
lazy-apps = true
|
| 22 |
-
enable-threads = 4
|
| 23 |
-
|
| 24 |
-
# Module to import
|
| 25 |
-
module = searx.webapp
|
| 26 |
-
|
| 27 |
-
# Virtualenv and python path
|
| 28 |
-
pythonpath = /usr/local/searxng/
|
| 29 |
-
chdir = /usr/local/searxng/searx/
|
| 30 |
-
|
| 31 |
-
# automatically set processes name to something meaningful
|
| 32 |
-
auto-procname = true
|
| 33 |
-
|
| 34 |
-
# Disable request logging for privacy
|
| 35 |
-
disable-logging = true
|
| 36 |
-
log-5xx = true
|
| 37 |
-
|
| 38 |
-
# Set the max size of a request (request-body excluded)
|
| 39 |
-
buffer-size = 8192
|
| 40 |
-
|
| 41 |
-
# No keep alive
|
| 42 |
-
# See https://github.com/searx/searx-docker/issues/24
|
| 43 |
-
add-header = Connection: close
|
| 44 |
-
|
| 45 |
-
# uwsgi serves the static files
|
| 46 |
-
static-map = /static=/usr/local/searxng/searx/static
|
| 47 |
-
# expires set to one day
|
| 48 |
-
static-expires = /* 86400
|
| 49 |
-
static-gzip-all = True
|
| 50 |
-
offload-threads = 4
|
|
|
|
| 1 |
+
[uwsgi]
|
| 2 |
+
# Who will run the code
|
| 3 |
+
uid = searxng
|
| 4 |
+
gid = searxng
|
| 5 |
+
|
| 6 |
+
# Number of workers (usually CPU count)
|
| 7 |
+
# default value: %k (= number of CPU core, see Dockerfile)
|
| 8 |
+
workers = %k
|
| 9 |
+
|
| 10 |
+
# Number of threads per worker
|
| 11 |
+
# default value: 4 (see Dockerfile)
|
| 12 |
+
threads = 4
|
| 13 |
+
|
| 14 |
+
# The right granted on the created socket
|
| 15 |
+
chmod-socket = 666
|
| 16 |
+
|
| 17 |
+
# Plugin to use and interpreter config
|
| 18 |
+
single-interpreter = true
|
| 19 |
+
master = true
|
| 20 |
+
plugin = python3
|
| 21 |
+
lazy-apps = true
|
| 22 |
+
enable-threads = 4
|
| 23 |
+
|
| 24 |
+
# Module to import
|
| 25 |
+
module = searx.webapp
|
| 26 |
+
|
| 27 |
+
# Virtualenv and python path
|
| 28 |
+
pythonpath = /usr/local/searxng/
|
| 29 |
+
chdir = /usr/local/searxng/searx/
|
| 30 |
+
|
| 31 |
+
# automatically set processes name to something meaningful
|
| 32 |
+
auto-procname = true
|
| 33 |
+
|
| 34 |
+
# Disable request logging for privacy
|
| 35 |
+
disable-logging = true
|
| 36 |
+
log-5xx = true
|
| 37 |
+
|
| 38 |
+
# Set the max size of a request (request-body excluded)
|
| 39 |
+
buffer-size = 8192
|
| 40 |
+
|
| 41 |
+
# No keep alive
|
| 42 |
+
# See https://github.com/searx/searx-docker/issues/24
|
| 43 |
+
add-header = Connection: close
|
| 44 |
+
|
| 45 |
+
# uwsgi serves the static files
|
| 46 |
+
static-map = /static=/usr/local/searxng/searx/static
|
| 47 |
+
# expires set to one day
|
| 48 |
+
static-expires = /* 86400
|
| 49 |
+
static-gzip-all = True
|
| 50 |
+
offload-threads = 4
|