-
Notifications
You must be signed in to change notification settings - Fork 17
/
uwsgi-spns.ini
42 lines (36 loc) · 1.89 KB
/
uwsgi-spns.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[uwsgi]
chdir = /path/to/session-push-notification-server
socket = spns.wsgi
chmod-socket = 666
plugins = python3,logfile
manage-script-name = true
logger = file:logfile=/path/to/session-push-notification-server/spns.log,maxsize=100000000,backupname=/path/to/session-push-notification-server/spns.log.old
# Because requests block while waiting for the hivemind to process the request we run with lots of
# thread workers available that can deal with lots of concurrent pending connections in case the
# hivemind gets momentarily busy handling requests and/or notifications. (This would be a good use
# for async handling, but uwsgi doesn't currently support that).
enable-threads = true
threads = 16
# This is the main handler for front-end "app" requests:
mount = /=spns.web:app
# Alongside the web front-end interface we *can* run the backend workers (which do most of the work)
# as "mules", so that all the processes are managed by uwsgi.
#
# Alternatively, you can run hivemind as notifiers as systemd services, which is a little more
# flexible.
#
# Choose an approach: if using systemd then install the systemd/* files and activate the services
# via systemd, keeping the following mules commented out.
# If using mules and putting everything under uwsgi then *don't* install the systemd files and
# uncomment the hivemind and any desired notifiers here.
### Hivemind
# This is the main "hivemind" mule that is the central business component of the PN server.
#mule = spns.hivemind:run
### Notifiers
# Apple APNS push notifier; required if you want to support APNS notifications:
#mule = spns.notifiers.apns:run
# Google firebase push notification server for Google API android device notifications:
#mule = spns.notifiers.firebase:run
# Dummy notifier, normally disabled. This notifier does nothing aside from logging would-be
# notifications. Leave disabled when not developing/debugging.
#mule = spns.notifiers.dummy:run