aboutsummaryrefslogtreecommitdiffstats
path: root/docker/uwsgi.ini
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2019-09-28 06:20:07 +1000
committerGravatar scragly <[email protected]>2019-09-28 06:20:07 +1000
commit4769c8b5e3ba70301b1123c5750429b2092b01b1 (patch)
tree172f46a1b495a3b6948e183165a3e623b1462380 /docker/uwsgi.ini
parentEnsure docker containers are published only for master branch bu… (#264) (diff)
Create custom manage.py entry point, remove scripts and merge Dockerfile.
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