forked from praekeltfoundation/vumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
39 lines (32 loc) · 934 Bytes
/
nginx.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
upstream gunicorn_production {
server 127.0.0.1:4001;
}
upstream gunicorn_mobi {
server 127.0.0.1:4002;
}
server {
listen 4000;
server_name vumi.praekeltfoundation.org www.vumi.org vumi.org;
location /static/ {
root /var/praekelt/vumi/prelaunch/current/vumi/vumi/webroot;
}
location / {
client_max_body_size 150m;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://gunicorn_production;
}
}
server {
listen 4000;
server_name m.vumi.praekeltfoundation.org m.vumi.org;
location /static/ {
root /var/praekelt/vumi/prelaunch/current/vumi/vumi/webroot;
}
location / {
client_max_body_size 150m;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://gunicorn_mobi;
}
}