Skip to content

Commit

Permalink
Update uwsgi settings for clean shutdown
Browse files Browse the repository at this point in the history
The default uwsgi config doesn't play well with consul-template. Add
exit-on-reload for clean shutdown. The rest of changes help make startup
more robust.
  • Loading branch information
MonkeyDo authored and amCap1712 committed Nov 21, 2023
1 parent 5c9d5fb commit f8f70b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/uwsgi/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[uwsgi]
uid = www-data
gid = www-data
master = true
socket = 0.0.0.0:13032
module = manage
Expand All @@ -9,3 +11,7 @@ processes = 20
disable-logging = true
; increase buffer size for requests that send a lot of mbids in query params
buffer-size = 8192
; when uwsgi gets a sighup, quit completely and let runit restart us
exit-on-reload = true
need-app = true
log-x-forwarded-for=true

0 comments on commit f8f70b2

Please sign in to comment.