Squashed commit of the following:
commit cb82580f868b629902ba96c7f09f885b7d9c24dc Author: Jens Luedicke <jens.luedicke@gmail.com> Date: Thu Jul 3 22:42:49 2025 +0200 Fix for postgres db migration. #5 commit 6a4505e2db1cdb2cec65e630b63535ba08c02fc4 Author: Jens Luedicke <jens.luedicke@gmail.com> Date: Thu Jul 3 22:39:58 2025 +0200 Fix for postgres db migration. #4 commit 7d9a5bb12c591182e67d7d52f90d6b1a45260d9f Author: Jens Luedicke <jens.luedicke@gmail.com> Date: Thu Jul 3 22:38:02 2025 +0200 Fix for postgres db migration. #3 commit 29dbb8b62d873dfbc4901b21e637a7181d545ec7 Author: Jens Luedicke <jens.luedicke@gmail.com> Date: Thu Jul 3 22:35:08 2025 +0200 Fix for postgres db migration. #2 commit d5afc56290d05f53e06a77366214c605d0989c1d Author: Jens Luedicke <jens.luedicke@gmail.com> Date: Thu Jul 3 22:33:09 2025 +0200 Fix for postgres db migration. commit 936008fe1c56b6e699c4a45b503507b6423e15eb Author: Jens Luedicke <jens.luedicke@gmail.com> Date: Thu Jul 3 21:46:32 2025 +0200 Add changes for gunicorn. commit 464c71e5102117f35d05e1504165299ffa50c70c Author: Jens Luedicke <jens.luedicke@gmail.com> Date: Thu Jul 3 20:30:29 2025 +0200 Add changes for Postgres migration.
This commit is contained in:
55
uwsgi.ini
Normal file
55
uwsgi.ini
Normal file
@@ -0,0 +1,55 @@
|
||||
[uwsgi]
|
||||
# Application module
|
||||
wsgi-file = app.py
|
||||
callable = app
|
||||
pythonpath = /app
|
||||
chdir = /app
|
||||
|
||||
# Process management
|
||||
master = true
|
||||
processes = 4
|
||||
threads = 2
|
||||
max-requests = 1000
|
||||
harakiri = 30
|
||||
thunder-lock = true
|
||||
|
||||
# UNIX Domain Socket configuration for nginx
|
||||
socket = /host/shared/uwsgi.sock
|
||||
chmod-socket = 666
|
||||
chown-socket = www-data:www-data
|
||||
|
||||
# HTTP socket for direct access
|
||||
http-socket = :5000
|
||||
|
||||
vacuum = true
|
||||
|
||||
# Logging
|
||||
logto = /var/log/uwsgi/timetrack.log
|
||||
log-maxsize = 50000000
|
||||
disable-logging = false
|
||||
|
||||
# Memory and CPU optimization
|
||||
memory-report = true
|
||||
cpu-affinity = 1
|
||||
reload-on-rss = 512
|
||||
worker-reload-mercy = 60
|
||||
|
||||
# Security
|
||||
no-site = true
|
||||
strict = true
|
||||
|
||||
# Hot reload in development
|
||||
py-autoreload = 1
|
||||
|
||||
# Buffer size
|
||||
buffer-size = 32768
|
||||
|
||||
# Enable stats server (optional)
|
||||
stats = 127.0.0.1:9191
|
||||
stats-http = true
|
||||
|
||||
# Die on term signal
|
||||
die-on-term = true
|
||||
|
||||
# Lazy apps for better memory usage
|
||||
lazy-apps = true
|
||||
Reference in New Issue
Block a user