blob: b6caa60947a3752e74537ea2af752722d51b745a [file] [log] [blame]
Ekko Chang5919a142019-05-13 18:41:30 +08001server {
2 listen 80;
3 root /usr/share/nginx/html;
4
Kate Hsuana4def1d2020-03-17 03:46:32 +00005 resolver 127.0.0.1 valid=10s;
Ekko Chang5919a142019-05-13 18:41:30 +08006 location ~/datalake/v1(.*)$ {
Kate Hsuana4def1d2020-03-17 03:46:32 +00007 #set $upstreamName http://dl_feeder:1680/datalake/v1$1;
8 include /etc/nginx/upstream.conf;
Ekko Chang5919a142019-05-13 18:41:30 +08009 proxy_pass $upstreamName;
10
11 proxy_ssl_server_name on;
12
13 proxy_redirect off;
14 proxy_set_header Host $host;
15 proxy_set_header X-Real-IP $remote_addr;
16 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
17 proxy_set_header X-Forwarded-Host $server_name;
18 }
19}
Kate Hsuana4def1d2020-03-17 03:46:32 +000020