-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdev-nginx.conf
43 lines (36 loc) · 932 Bytes
/
dev-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
40
41
42
43
server {
listen 80;
server_name fakes3;
client_max_body_size 50m;
location / {
proxy_pass http://fakes3;
add_header Access-Control-Allow-Headers "Accept, Content-Type, Authorization, Content-Length, ETag, Content-MD5";
}
}
server {
listen 80;
server_name dev.openspending.org;
error_page 500 502 503 504 /500.html;
include "/etc/nginx/server-rules.conf";
location = /500.html {
root /usr/share/nginx/errors/;
internal;
}
location /testing {
fastcgi_pass unix:/does/not/exist;
}
}
server {
listen 80;
server_name rd.dev.openspending.org;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://redash:5000/;
}
}
server {
listen 8080;
server_name dev.openspending.org;
include "/etc/nginx/server-rules.conf";
}