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 | 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 | } |