summaryrefslogtreecommitdiffstats
path: root/kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2018-01-23 11:04:43 -0500
committerAlexis de Talhouët <adetalhouet89@gmail.com>2018-01-23 13:58:42 -0500
commitf6c0855f03b99fcca9f411370221fe9ffa48e889 (patch)
tree079b0a6f1a3a5ed7ae5b8001a0650911ee697874 /kubernetes/config/docker/init/src/config/dcaegen2/nginx/config/pdp.onap.org.conf
parentbbfe29d8cabfd347fa75e947a5753f7aa9a24177 (diff)
Do not cache host resolution in DCAEGEN2 nginx
And fix DNS Designate proxy setup Change-Id: I46c265ba8f66f81503b8cdc8c0f90f9e5956da86 Issue-ID: OOM-608 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
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";
}