Michal Kobus | 492d8bc | 2021-02-15 16:54:13 +0100 | [diff] [blame] | 1 | #!/bin/ash |
vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame] | 2 | |
| 3 | export SIMPLE_SETTINGS=${SIMPLE_SETTINGS:-sf_notifier.settings.production} |
vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame] | 4 | |
| 5 | WORKERS=${SF_NOTIFIER_WORKERS:-4} |
| 6 | BUFFER=${SF_NOTIFIER_BUFFER_SIZE:-32768} |
| 7 | PORT=${SF_NOTIFIER_APP_PORT:-5000} |
vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame] | 8 | |
Michal Kobus | aa3accf | 2019-06-05 12:25:09 +0200 | [diff] [blame] | 9 | uwsgi -p ${WORKERS} \ |
Michal Kobus | 492d8bc | 2021-02-15 16:54:13 +0100 | [diff] [blame] | 10 | --uid 1000 \ |
| 11 | --gid 1000 \ |
vitalygusev | 507dfdb | 2019-05-28 12:53:55 +0400 | [diff] [blame] | 12 | --http 0.0.0.0:${PORT} \ |
| 13 | --wsgi-file sf_notifier/server.py \ |
| 14 | --callable app_dispatch \ |
| 15 | --buffer-size=${BUFFER} \ |
| 16 | --max-worker-lifetime 300 \ |
Michal Kobus | 2e85ef8 | 2021-06-24 18:01:43 +0200 | [diff] [blame] | 17 | --master \ |
| 18 | --req-logger=file:${LOGPATH} |