Skip to content
Permalink
Browse files
FINCN-164 revert proxy.conf.json, add notification-ms endpoints, fix …
…padding
  • Loading branch information
Juhan Aasaru authored and Juhan Aasaru committed Sep 12, 2019
1 parent 0c5370b commit ad254a5863ec7633922ad4a2a66bc0bdb553b449
Showing 3 changed files with 60 additions and 32 deletions.
@@ -1,80 +1,86 @@
{
"/identity": {
"target": "http://identity-ms:2021",
"target": "http://localhost:2021",
"secure": false,
"pathRewrite": {
"/identity": "/identity"
}
},
"/api/office": {
"target": "http://office-ms:2023",
"target": "http://localhost:2023",
"secure": false,
"pathRewrite": {
"^/api/office": "/office"
}
},
"/api/customer": {
"target": "http://customer-ms:2024",
"target": "http://localhost:2024",
"secure": false,
"pathRewrite": {
"^/api/customer": "/customer"
}
},
"/api/accounting": {
"target": "http://accounting-ms:2025",
"target": "http://localhost:2025",
"secure": false,
"pathRewrite": {
"^/api/accounting": "/accounting"
}
},
"/api/portfolio": {
"target": "http://portfolio-ms:2026",
"target": "http://localhost:2026",
"secure": false,
"pathRewrite": {
"^/api/portfolio": "/portfolio"
}
},
"/api/deposit": {
"target": "http://deposit-account-management-ms:2027",
"target": "http://localhost:2027",
"secure": false,
"pathRewrite": {
"^/api/deposit": "/deposit"
}
},
"/api/teller": {
"target": "http://teller-ms:2028",
"target": "http://localhost:2028",
"secure": false,
"pathRewrite": {
"^/api/teller": "/teller"
}
},
"/api/reporting": {
"target": "http://reporting-ms:2029",
"target": "http://localhost:2029",
"secure": false,
"pathRewrite": {
"^/api/reporting": "/reporting"
}
},
"/api/cheques": {
"target": "http://cheques-ms:2030",
"target": "http://localhost:2030",
"secure": false,
"pathRewrite": {
"^/api/cheques": "/cheques"
}
},
"/api/payroll": {
"target": "http://payroll-ms:2031",
"target": "http://localhost:2031",
"secure": false,
"pathRewrite": {
"^/api/payroll": "/payroll"
}
},

"/api/group": {
"target": "http://group-ms:2032",
"target": "http://localhost:2032",
"secure": false,
"pathRewrite": {
"^/api/group": "/group"
}
},
"/api/notification": {
"target": "http://localhost:2033",
"secure": false,
"pathRewrite": {
"^/api/notification": "/notification"
}
}
}
@@ -30,7 +30,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/office/ {
location /api/office/ {
proxy_pass http://office-ms:2023/office/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -41,7 +41,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/customer/ {
location /api/customer/ {
proxy_pass http://customer-ms:2024/customer/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -52,7 +52,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/accounting/ {
location /api/accounting/ {
proxy_pass http://accounting-ms:2025/accounting/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -63,7 +63,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/portfolio/ {
location /api/portfolio/ {
proxy_pass http://portfolio-ms:2026/portfolio/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -74,7 +74,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/deposit/ {
location /api/deposit/ {
proxy_pass http://deposit-account-management-ms:2027/deposit/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -85,7 +85,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/teller/ {
location /api/teller/ {
proxy_pass http://teller-ms:2028/teller/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -96,7 +96,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/reporting/ {
location /api/reporting/ {
proxy_pass http://reporting-ms:2029/reporting/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -107,7 +107,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/cheques/ {
location /api/cheques/ {
proxy_pass http://cheques-ms:2030/cheques/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -118,7 +118,7 @@ location /api/cheques/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/payroll/ {
location /api/payroll/ {
proxy_pass http://payroll-ms:2031/payroll/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -129,7 +129,7 @@ location /api/payroll/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/group/ {
location /api/group/ {
proxy_pass http://group-ms:2032/group/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -140,6 +140,17 @@ location /api/payroll/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/notification/ {
proxy_pass http://notifications-ms:2032/notification/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

#Static File Caching. All static files with the following extension will be cached for 1 day
location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
expires 1d;
@@ -30,7 +30,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/office/ {
location /api/office/ {
proxy_pass http://localhost:2023/office/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -41,7 +41,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/customer/ {
location /api/customer/ {
proxy_pass http://localhost:2024/customer/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -52,7 +52,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/accounting/ {
location /api/accounting/ {
proxy_pass http://localhost:2025/accounting/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -63,7 +63,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/portfolio/ {
location /api/portfolio/ {
proxy_pass http://localhost:2026/portfolio/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -74,7 +74,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/deposit/ {
location /api/deposit/ {
proxy_pass http://localhost:2027/deposit/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -85,7 +85,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/teller/ {
location /api/teller/ {
proxy_pass http://localhost:2028/teller/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -96,7 +96,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/reporting/ {
location /api/reporting/ {
proxy_pass http://localhost:2029/reporting/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -107,7 +107,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/cheques/ {
location /api/cheques/ {
proxy_pass http://localhost:2030/cheques/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -118,7 +118,7 @@ location /api/cheques/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/payroll/ {
location /api/payroll/ {
proxy_pass http://localhost:2031/payroll/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -129,7 +129,7 @@ location /api/payroll/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/group/ {
location /api/group/ {
proxy_pass http://localhost:2032/group/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -140,6 +140,17 @@ location /api/payroll/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /api/notification/ {
proxy_pass http://localhost:2033/notification/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

#Static File Caching. All static files with the following extension will be cached for 1 day
location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
expires 1d;

0 comments on commit ad254a5

Please sign in to comment.