Ekko Chang | 5919a14 | 2019-05-13 18:41:30 +0800 | [diff] [blame] | 1 | server { |
Kate Hsuan | f32825f | 2020-03-27 06:49:15 +0000 | [diff] [blame^] | 2 | listen 8088; |
Ekko Chang | 5919a14 | 2019-05-13 18:41:30 +0800 | [diff] [blame] | 3 | root /usr/share/nginx/html; |
| 4 | |
Kate Hsuan | f32825f | 2020-03-27 06:49:15 +0000 | [diff] [blame^] | 5 | include /etc/nginx/resolver.conf; |
Ekko Chang | 5919a14 | 2019-05-13 18:41:30 +0800 | [diff] [blame] | 6 | location ~/datalake/v1(.*)$ { |
Kate Hsuan | a4def1d | 2020-03-17 03:46:32 +0000 | [diff] [blame] | 7 | #set $upstreamName http://dl_feeder:1680/datalake/v1$1; |
| 8 | include /etc/nginx/upstream.conf; |
Ekko Chang | 5919a14 | 2019-05-13 18:41:30 +0800 | [diff] [blame] | 9 | 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 Hsuan | a4def1d | 2020-03-17 03:46:32 +0000 | [diff] [blame] | 20 | |