aboutsummaryrefslogtreecommitdiffstats
path: root/docker/uwsgi.ini
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-29 18:17:29 +0200
committerGravatar GitHub <[email protected]>2019-09-29 18:17:29 +0200
commited38ec2f79fab4758c1e708bb321dc23930f8fe0 (patch)
tree7a57dd244ea83ab8facbc0e573aabed6dd3b4dcb /docker/uwsgi.ini
parentAdd static images for wiki contributing guides (#266) (diff)
parentMerge branch 'master' into new-managepy (diff)
Merge pull request #265 from python-discord/new-managepy
Custom `manage.py` Entry Point Script
Diffstat (limited to 'docker/uwsgi.ini')
-rw-r--r--docker/uwsgi.ini38
1 files changed, 38 insertions, 0 deletions
diff --git a/docker/uwsgi.ini b/docker/uwsgi.ini
new file mode 100644
index 00000000..3f35258c
--- /dev/null
+++ b/docker/uwsgi.ini
@@ -0,0 +1,38 @@
+[uwsgi]
+### Exposed ports
+# uWSGI protocol socket
+socket = :4000
+
+### File settings
+# WSGI application
+wsgi = pydis_site.wsgi:application
+# Directory to move into at startup
+chdir = /app
+
+### Concurrency options
+# Run a master to supervise the workers
+master = true
+# Keep a minimum of 1 worker
+cheaper = 1
+# Allow a maximum of 4 workers
+workers = 4
+# Automatically set up meanginful process names
+auto-procname = true
+# Prefix process names with `pydis_site : `
+procname-prefix-spaced = pydis_site :
+
+### Worker options
+# Kill workers if they take more than 30 seconds to respond.
+harakiri = 30
+
+### Startup settings
+# Exit if we can't load the app
+need-app = true
+# `setuid` to an unprivileged user
+uid = 1500
+# Do not use multiple interpreters
+single-interpreter = true
+
+### Hook setup
+# Gracefully kill workers on `SIGQUIT`
+hook-master-start = unix_signal:3 gracefully_kill_them_all