blob: 104de77fe45677d360e1118e166bf0ec6632ecff [file] [log] [blame]
Michal Kobus492d8bc2021-02-15 16:54:13 +01001#!/bin/ash
vitalygusev507dfdb2019-05-28 12:53:55 +04002
3export SIMPLE_SETTINGS=${SIMPLE_SETTINGS:-sf_notifier.settings.production}
vitalygusev507dfdb2019-05-28 12:53:55 +04004
5WORKERS=${SF_NOTIFIER_WORKERS:-4}
6BUFFER=${SF_NOTIFIER_BUFFER_SIZE:-32768}
7PORT=${SF_NOTIFIER_APP_PORT:-5000}
vitalygusev507dfdb2019-05-28 12:53:55 +04008
Michal Kobusaa3accf2019-06-05 12:25:09 +02009uwsgi -p ${WORKERS} \
Michal Kobus492d8bc2021-02-15 16:54:13 +010010 --uid 1000 \
11 --gid 1000 \
vitalygusev507dfdb2019-05-28 12:53:55 +040012 --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 Kobus2e85ef82021-06-24 18:01:43 +020017 --master \
18 --req-logger=file:${LOGPATH}