-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnginx.conf
30 lines (27 loc) · 989 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
proxy_next_upstream error;
upstream tornadoes {
server 127.0.0.1:8000;
server 127.0.0.1:8001;
server 127.0.0.1:8002;
server 127.0.0.1:8003;
}
server {
listen 80;
server_name v2dig.lowstz.org;
access_log /path/to/your/v2dig.access.log;
error_log /path/to/your//v2dig.error.log;
location /static/ {
root /path/to/your/v2dig;
if ($query_string) {
expires max;
}
}
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://tornadoes;
}
}