[uwsgi]
chdir=/code
module=app.wsgi:application
env=DJANGO_SETTINGS_MODULE=app.settings
master=1
pidfile=/tmp/project-master.pid
#socket=0.0.0.0:8000
socket=/var/run/uwsgi-gia.sock
# socket 777
chmod-socket=777
# Internal HTTP listener for in-pod services (e.g. Prosody auth bridge).
# Binds loopback only; external traffic still goes through the Unix socket.
http-socket = 127.0.0.1:8090
harakiri=200
#max-requests=100000
# Set a lower value for max-requests to prevent memory leaks from building up over time
max-requests=1000
# Ensure old worker processes are cleaned up properly
reload-on-as=512
reload-on-rss=256
touch-reload=/code/.uwsgi-reload
vacuum=1
home=/venv
processes=2
threads=2
log-level=warning
