fix routes

This commit is contained in:
Simon Larsen 2022-12-20 12:52:41 +05:30
parent 95929bbeb7
commit 6ad27c9aea
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 6 additions and 6 deletions

View File

@ -143,7 +143,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://home/;
proxy_pass http://home;
}
location /accounts {
@ -156,7 +156,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://accounts/;
proxy_pass http://accounts;
}
location /dashboard {
@ -169,7 +169,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://dashboard/;
proxy_pass http://dashboard;
}
location /status-page {
@ -182,7 +182,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://status-page/;
proxy_pass http://status-page;
}
location /identity {
@ -238,6 +238,6 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://workers/;
proxy_pass http://workers;
}
}

View File

@ -27,7 +27,7 @@ const APP_NAME: string = 'workers';
const app: ExpressApplication = Express.getExpressApp();
//cert routes.
app.use(StausPageCerts);
app.use(`/${APP_NAME.toLocaleLowerCase()}`, StausPageCerts);
const init: Function = async (): Promise<void> => {
try {