summaryrefslogtreecommitdiffstats
path: root/components/datalake-handler/admin/nginx/dl-admin-nginx.conf
blob: 4ffbdfd3a41a3e5093ece280a1f8eb2be1d68a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
server {
    listen 8088;
    root  /usr/share/nginx/html;

    include /etc/nginx/resolver.conf;
    location ~/datalake/v1(.*)$ {
        #set $upstreamName http://dl_feeder:1680/datalake/v1$1;
        include /etc/nginx/upstream.conf;
        proxy_pass $upstreamName;

        proxy_ssl_server_name on;

        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $server_name;
    }
}