blob: 559a1b236d5541714ec2c6d22223d90bf0e13bdb [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
7 proxy_pass ${DL_FEEDER_HOST}/datalake/v1$1;
8
9 proxy_ssl_server_name on;
10
11 proxy_redirect off;
12 proxy_set_header Host $proxy_host;
13 proxy_set_header X-Real-IP $remote_addr;
14 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15 proxy_set_header X-Forwarded-Host $server_name;
16 }
17}