Do not cache host resolution in DCAEGEN2 nginx
[oom.git] / kubernetes / config / docker / init / src / config / dcaegen2 / nginx / config / pdp.onap.org.conf
1 server {
2     listen 8081 ;
3     listen [::]:8081 ;
4
5     root /var/www/html;
6
7     index index.html index.htm index.nginx-debian.html;
8
9     server_name *.policy.simpledemo.onap.org;
10
11     resolver KUBE_DNS_IP_HERE valid=1s;
12
13     set $backend http://pdp.onap-policy.svc.cluster.local:8081;
14
15     location / {
16         rewrite ^/(.*) /$1 break;
17         proxy_pass $backend;
18         proxy_set_header Host $host;
19         proxy_set_header X-Forwarded-Proto "http";
20     }
21
22 }