-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.prod.conf
43 lines (36 loc) · 948 Bytes
/
nginx.prod.conf
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
upstream pzapi {
server backend:8000;
}
server {
listen 8080;
client_max_body_size 200M;
charset utf-8;
gzip on;
gzip_comp_level 9;
gzip_min_length 128;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css application/json application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;
proxy_send_timeout 120s;
proxy_read_timeout 120s;
fastcgi_send_timeout 120s;
fastcgi_read_timeout 120s;
location /api {
include uwsgi_params;
uwsgi_pass pzapi;
}
location /admin {
include uwsgi_params;
uwsgi_pass pzapi;
}
location /o {
include uwsgi_params;
uwsgi_pass pzapi;
}
location /django_static {
include uwsgi_params;
uwsgi_pass pzapi;
}
# Celery Flower
location /flower {
proxy_pass http://celery_flower:5555;
}
}