-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuwsgi.ini
64 lines (53 loc) · 2.62 KB
/
uwsgi.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[uwsgi]
procname-prefix-spaced = donormotor
master = 1
socket = /run/uwsgi/donormotor.sock
chmod-socket = 600
touch-reload = /srv/http/donormotor/reload.txt
processes = 20
offload-threads = 4
harakiri = 30
enable-threads = 1
chdir = /srv/http/donormotor
plugins = python,sse_offload
module = donormotor
callable = app
add-header = X-Frame-Options: SAMEORIGIN
static-map = /robots.txt=donormotor/static/robots.txt
static-map = /static=donormotor/static
static-map = /static/media=media
collect-header = Content-Security-Policy CSP
response-route-if = empty:${CSP} addheader:Content-Security-Policy: default-src 'self' https:; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://checkout.stripe.com; style-src 'self' 'unsafe-inline' https://checkout.stripe.com; media-src 'self' *; frame-ancestors 'self'
pull-header = X-SSE-Offload SSE_OFFLOAD
pull-header = X-SSE-Server SSE_SERVER
pull-header = X-SSE-Channel SSE_CHANNEL
pull-header = X-SSE-Password SSE_PASSWORD
response-route-if-not = empty:${SSE_OFFLOAD} sse:server=${SSE_SERVER},subscribe=${SSE_CHANNEL},password=${SSE_PASSWORD}
log-format = [pid: %(pid)|app: -|req: -/-] %(addr) (%(app_user)) {%(vars) vars in %(pktsize) bytes} [%(ctime)] %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs (%(proto) %(status)) %(headers) headers in %(hsize) bytes (%(switches) switches on core %(core))
[dev]
procname-prefix-spaced = donormotor
master = 1
http-socket = :9090
processes = 2
offload-threads = 1
harakiri = 30
enable-threads = 1
plugins = python,sse_offload
py-autoreload = 1
if-env = VIRTUAL_ENV
virtualenv = '%(_)'
endif =
module = donormotor
callable = app
add-header = X-Frame-Options: SAMEORIGIN
static-map = /robots.txt=donormotor/static/robots.txt
static-map = /static=donormotor/static
static-map = /static/media=media
collect-header = Content-Security-Policy CSP
response-route-if = empty:${CSP} addheader:Content-Security-Policy: default-src 'self' https:; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://checkout.stripe.com; style-src 'self' 'unsafe-inline' https://checkout.stripe.com; media-src 'self' *; frame-ancestors 'self'
pull-header = X-SSE-Offload SSE_OFFLOAD
pull-header = X-SSE-Server SSE_SERVER
pull-header = X-SSE-Channel SSE_CHANNEL
pull-header = X-SSE-Password SSE_PASSWORD
response-route-if-not = empty:${SSE_OFFLOAD} sse:server=${SSE_SERVER},subscribe=${SSE_CHANNEL},password=${SSE_PASSWORD}
log-format = [pid: %(pid)|app: -|req: -/-] %(addr) (%(app_user)) {%(vars) vars in %(pktsize) bytes} [%(ctime)] %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs (%(proto) %(status)) %(headers) headers in %(hsize) bytes (%(switches) switches on core %(core))