ansible-infra/ansible_collections/nullified/infrastructure/roles/searxng/templates/uwsgi/uwsgi.ini.j2

35 lines
760 B
Django/Jinja

# -*- mode: conf; coding: utf-8 -*-
[uwsgi]
uid = {{ searxng_user }}
gid = {{ searxng_group }}
master = True
lazy-apps = true
cheap = True
idle = 600
die-on-idle = False
manage-script-name = True
env = LANG=C.UTF-8
env = LANGUAGE=C.UTF-8
env = LC_ALL=C.UTF-8
env = SEARXNG_SETTINGS_PATH={{ searxng_install_dir }}/settings.yml
virtualenv = {{ searxng_install_dir }}/.venv
pythonpath = {{ searxng_git_dir }}
chdir = {{ searxng_git_dir }}/searx
disable-logging = true
chmod-socket = 660
single-interpreter = true
enable-threads = true
workers = %k
threads = 4
static-map = /static={{ searxng_git_dir }}/searx/static
static-gzip-all = True
offload-threads = %k
socket = {{ searxng_uwsgi_socket_dir }}/searxng.socket
buffer-size = 8192
module = searx.webapp