summaryrefslogtreecommitdiffstats
path: root/kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf')
-rw-r--r--kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf b/kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf
index 2bbff5c6d4..72fe7be134 100644
--- a/kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf
+++ b/kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf
@@ -8,8 +8,13 @@ server {
server_name *.policy.simpledemo.onap.org;
+ resolver KUBE_DNS_IP_HERE valid=1s;
+
+ set $backend http://pdp.onap-policy.svc.cluster.local:8081;
+
location / {
- proxy_pass http://pdp.onap-policy:8081/;
+ rewrite ^/(.*) /$1 break;
+ proxy_pass $backend;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto "http";
}