1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searxng_ynh.git synced 2024-09-03 20:26:00 +02:00
searxng_ynh/conf/uwsgi.ini

55 lines
1.1 KiB
INI
Raw Normal View History

2022-11-23 12:46:39 +01:00
[uwsgi]
# Who will run the code
2022-11-24 18:35:24 +01:00
uid = __APP__
gid = __APP__
2022-11-23 12:46:39 +01:00
# Number of workers
workers = 4
# The right granted on the created socket
chmod-socket = 666
# Plugin to use and interpretor config
single-interpreter = true
master = true
plugin = python3
lazy-apps = true
enable-threads = true
# Application base folder
2022-11-24 18:35:24 +01:00
base = __FINALPATH__
2022-11-23 12:46:39 +01:00
# Support running the module from a webserver subdirectory.
route-run = fixpathinfo:
# Module to import
2023-02-12 20:23:29 +01:00
module = searx.webapp
2022-11-23 12:46:39 +01:00
# Virtualenv and python path
2022-11-24 21:21:51 +01:00
virtualenv = __FINALPATH__/venv/
2022-11-24 18:35:24 +01:00
pythonpath = __FINALPATH__
chdir = __FINALPATH__/searx/
2022-11-23 12:46:39 +01:00
# The variable holding flask application
callable = app
2022-11-24 18:35:24 +01:00
2022-11-24 18:55:07 +01:00
# speak to upstream
# -----------------
socket = /var/run/__APP__/app.socket
buffer-size = 8192
# uWSGI serves the static files and in settings.yml we use::
#
# ui:
# static_use_hash: true
#
static-map = /static=__FINALPATH__/searx/static
# expires set to one year since there are hashes
static-expires = /* 31557600
static-gzip-all = True
offload-threads = %k
# Cache
cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1