2022-06-03 08:09:47 -06:00
|
|
|
[uwsgi]
|
2023-03-28 11:34:37 +08:00
|
|
|
strict=true
|
2022-06-03 08:09:47 -06:00
|
|
|
chdir=/etc/app
|
|
|
|
|
module=engine.wsgi:application
|
|
|
|
|
master=True
|
|
|
|
|
pidfile=/tmp/project-master.pid
|
|
|
|
|
http=0.0.0.0:8080
|
|
|
|
|
processes=5
|
|
|
|
|
harakiri=620
|
|
|
|
|
max-requests=5000
|
|
|
|
|
vacuum=True
|
|
|
|
|
buffer-size=65535
|
|
|
|
|
http-auto-chunked=True
|
|
|
|
|
http-timeout=620
|
|
|
|
|
post-buffering=1
|
2023-03-28 11:34:37 +08:00
|
|
|
enable-threads=true
|
2022-06-03 08:09:47 -06:00
|
|
|
|
2023-06-05 16:43:10 +08:00
|
|
|
; drop requests with CONTENT_LENGTH bigger than 15MB
|
|
|
|
|
route-if=ishigher:${CONTENT_LENGTH};15000000 break:413 Request Entity Too Large
|
|
|
|
|
|
2022-06-03 08:09:47 -06:00
|
|
|
logger=stdio
|
|
|
|
|
log-format=source=engine:uwsgi status=%(status) method=%(method) path=%(uri) latency=%(secs) google_trace_id=%(var.HTTP_X_CLOUD_TRACE_CONTEXT) protocol=%(proto) resp_size=%(size) req_body_size=%(cl)
|
2022-06-14 09:14:45 -06:00
|
|
|
log-encoder=format ${strftime:%%Y-%%m-%%d %%H:%%M:%%S} ${msgnl}
|