blob: 56e0a51e9d618cc0a744b96a8cba4a4d6050b6af [file] [log] [blame]
Ekko Chang5919a142019-05-13 18:41:30 +08001server {
2 listen 80;
3 root /usr/share/nginx/html;
4
5 location ~/datalake/v1(.*)$ {
6 resolver 127.0.0.1 valid=10s;
7 set $upstreamName http://dl_feeder:1680/datalake/v1$1;
8 proxy_pass $upstreamName;
9
10 proxy_ssl_server_name on;
11
12 proxy_redirect off;
13 proxy_set_header Host $host;
14 proxy_set_header X-Real-IP $remote_addr;
15 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16 proxy_set_header X-Forwarded-Host $server_name;
17 }
18}