Ekko Chang | 5919a14 | 2019-05-13 18:41:30 +0800 | [diff] [blame] | 1 | server { |
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 | } |