Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Up nginx server without ms #24

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions scripts/nginx/docker.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ http {
# /api will server your proxied API that is running on same machine different port
# or another machine. So you can protect your API endpoint not get hit by public directly
location /identity/ {
proxy_pass http://identity-ms:2021;
set $identityms http://identity-ms:2021;
proxy_pass $identityms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -31,7 +32,8 @@ http {
}

location /api/office/ {
proxy_pass http://office-ms:2023/office/;
set $officems http://office-ms:2023/office/;
proxy_pass $officems;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -42,7 +44,8 @@ http {
}

location /api/customer/ {
proxy_pass http://customer-ms:2024/customer/;
set $customerms http://customer-ms:2024/customer/;
proxy_pass $customerms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -53,7 +56,8 @@ http {
}

location /api/accounting/ {
proxy_pass http://accounting-ms:2025/accounting/;
set $accountingms http://accounting-ms:2025/accounting/;
proxy_pass $accountingms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -64,7 +68,8 @@ http {
}

location /api/portfolio/ {
proxy_pass http://portfolio-ms:2026/portfolio/;
set $portfolioms http://portfolio-ms:2026/portfolio/;
proxy_pass $portfolioms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -75,7 +80,8 @@ http {
}

location /api/deposit/ {
proxy_pass http://deposit-account-management-ms:2027/deposit/;
set $depositaccountmanagementms http://deposit-account-management-ms:2027/deposit/;
proxy_pass $depositaccountmanagementms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -86,7 +92,8 @@ http {
}

location /api/teller/ {
proxy_pass http://teller-ms:2028/teller/;
set $tellerms http://teller-ms:2028/teller/;
proxy_pass $tellerms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -97,7 +104,8 @@ http {
}

location /api/reporting/ {
proxy_pass http://reporting-ms:2029/reporting/;
set $reportingms http://reporting-ms:2029/reporting/;
proxy_pass $reportingms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -108,7 +116,8 @@ http {
}

location /api/cheques/ {
proxy_pass http://cheques-ms:2030/cheques/;
set $chequesms http://cheques-ms:2030/cheques/;
proxy_pass $chequesms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -119,7 +128,8 @@ http {
}

location /api/payroll/ {
proxy_pass http://payroll-ms:2031/payroll/;
set $payrollms http://payroll-ms:2031/payroll/;
proxy_pass $payrollms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -130,7 +140,8 @@ http {
}

location /api/group/ {
proxy_pass http://group-ms:2032/group/;
set $groupms http://group-ms:2032/group/;
proxy_pass $groupms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand All @@ -141,7 +152,8 @@ http {
}

location /api/notification/ {
proxy_pass http://notifications-ms:2032/notification/;
set $notificationsms http://notifications-ms:2032/notification/;
proxy_pass $notificationsms;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand Down