Browse Source

Nginx template changes for CloudApex

Change-Id: Id76a45d1919e25c6ed499478b4f5f110de87bcad
Signed-off-by: abdullah <abdullah.khan@plumgrid.com>
AbdullahK 3 years ago
parent
commit
abe9a41a52
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      deployment_scripts/puppet/modules/sal/templates/default.conf.erb

+ 17
- 0
deployment_scripts/puppet/modules/sal/templates/default.conf.erb View File

@@ -12,6 +12,10 @@ upstream pgCli {
12 12
   server <%= @nginx_virtual_ip %>:3000;
13 13
 }
14 14
 
15
+upstream pgMW {
16
+  server 127.0.0.1:4000;
17
+}
18
+
15 19
 map $http_upgrade $connection_upgrade {
16 20
   default upgrade;
17 21
   '' close;
@@ -58,6 +62,19 @@ server {
58 62
     proxy_set_header Host $host;
59 63
   }
60 64
 
65
+  location /mwv0 {
66
+    proxy_pass http://pgMW;
67
+    proxy_redirect off;
68
+    proxy_http_version 1.1;
69
+    proxy_set_header Upgrade $http_upgrade;
70
+    proxy_set_header Connection "upgrade";
71
+    proxy_set_header Host $host;
72
+  }
73
+
74
+  location /cloudApex/ {
75
+    index index.html;
76
+  }
77
+
61 78
   location /vtap/ {
62 79
     alias /opt/pg/vtap;
63 80
   }

Loading…
Cancel
Save