From abe9a41a52d38bf6840dafac9c9be06d7df7ca50 Mon Sep 17 00:00:00 2001 From: AbdullahK Date: Thu, 7 Apr 2016 13:08:30 +0500 Subject: [PATCH] Nginx template changes for CloudApex Change-Id: Id76a45d1919e25c6ed499478b4f5f110de87bcad Signed-off-by: abdullah --- .../modules/sal/templates/default.conf.erb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/deployment_scripts/puppet/modules/sal/templates/default.conf.erb b/deployment_scripts/puppet/modules/sal/templates/default.conf.erb index bb59170..bb3bbff 100644 --- a/deployment_scripts/puppet/modules/sal/templates/default.conf.erb +++ b/deployment_scripts/puppet/modules/sal/templates/default.conf.erb @@ -12,6 +12,10 @@ upstream pgCli { server <%= @nginx_virtual_ip %>:3000; } +upstream pgMW { + server 127.0.0.1:4000; +} + map $http_upgrade $connection_upgrade { default upgrade; '' close; @@ -58,6 +62,19 @@ server { proxy_set_header Host $host; } + location /mwv0 { + proxy_pass http://pgMW; + proxy_redirect off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + } + + location /cloudApex/ { + index index.html; + } + location /vtap/ { alias /opt/pg/vtap; }