diff options
| author | jvoisin | 2019-02-23 13:27:33 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-23 13:27:33 +0100 |
| commit | 1b0333fdd5175d6a45d1929218e0aac3db884139 (patch) | |
| tree | 2438036e7c3c9159ecd80c06aa1d8fd336509819 /config/uwsgi.config | |
| parent | 489fc7f2b5ef3d4be0f74e405a4200c6ffc12fc3 (diff) | |
Improve the deployment configuration
Diffstat (limited to '')
| -rw-r--r-- | config/uwsgi.config | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config/uwsgi.config b/config/uwsgi.config new file mode 100644 index 0000000..7108d33 --- /dev/null +++ b/config/uwsgi.config | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | [uwsgi] | ||
| 2 | module=main | ||
| 3 | chdir = /var/www/mat2-web/ | ||
| 4 | callable = app | ||
| 5 | wsgi-file = main.py | ||
| 6 | master = true | ||
| 7 | workers = 1 | ||
| 8 | |||
| 9 | uid = www-data | ||
| 10 | gid = www-data | ||
| 11 | |||
| 12 | # kill stalled processes | ||
| 13 | harakiri = 30 | ||
| 14 | die-on-term = true | ||
| 15 | |||
| 16 | socket = mat2-web.sock | ||
| 17 | chmod-socket = 774 | ||
| 18 | plugins = python3 | ||
| 19 | |||
