blob: 4ffbdfd3a41a3e5093ece280a1f8eb2be1d68a72 [file] [log] [blame]
Ekko Chang5919a142019-05-13 18:41:30 +08001server {
Kate Hsuanf32825f2020-03-27 06:49:15 +00002 listen 8088;
Ekko Chang5919a142019-05-13 18:41:30 +08003 root /usr/share/nginx/html;
4
Kate Hsuanf32825f2020-03-27 06:49:15 +00005 include /etc/nginx/resolver.conf;
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