mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-16 19:51:23 +01:00
15 lines
739 B
INI
15 lines
739 B
INI
[uwsgi]
|
|
plugin = /app/escape_json_plugin.so
|
|
|
|
static-map = /media=/app/data/media/
|
|
logger-req = stdio
|
|
; json_uri and json_host are json-escaped fields defined in `escape_json_plugin.so`
|
|
log-format = "address":"%(addr)", "host":"%(json_host)", "method":"%(method)", "uri":"%(json_uri)", "protocol":"%(proto)", "resp_size":%(size), "req_body_size":%(cl), "resp_status":%(status), "resp_time":%(msecs), "referer":"%(referer)", "user_agent":"%(uagent)"
|
|
log-req-encoder = format {"source":"uwsgi-req", "time":"${strftime:%%FT%%T%%z}", ${msg}}
|
|
log-req-encoder = nl
|
|
|
|
; Ignore write errors
|
|
; https://github.com/getsentry/raven-python/issues/732#issuecomment-176854438
|
|
ignore-sigpipe = true
|
|
ignore-write-errors = true
|
|
disable-write-exception = true
|