star-international-api/uwsgi.prod.ini
aifeilong 9f9c5f814f Add Docker packaging for production deployment with uWSGI.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-14 17:45:23 +08:00

17 lines
391 B
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[uwsgi]
env = LANG=en_US.UTF-8
env = LC_ALL=en_US.UTF-8
http = :8000
chdir = /app
wsgi_file = config/wsgi.py
module = config.wsgi:application
master = True
socket = /tmp/uwsgi.sock
chmod-socket = 666
vacuum = true
workers = 2
threads = 4
http-timeout = 1800 # 或更大的值
socket-timeout = 1800
harakiri = 1800 # 进程超时时间(秒),建议是API最大可能执行时间的2倍