Skip to content

Commit

Permalink
Test zoom reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavPshenichnikov committed Jul 30, 2024
1 parent eb495f1 commit 44e5595
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zoom-reverse-proxy/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

const cachedItem = {};
const regionsMap = {
'us-west-2': 'oforms.onlyoffice.com',
'eu-central-1': 'blog.onlyoffice.com',
'default': 'onlyoffice.com'
'us-west-2': 'ec2-54-156-143-89.compute-1.amazonaws.com',
'eu-central-1': 'ec2-35-85-95-46.us-west-2.compute.amazonaws.com',
'default': 'ec2-54-156-143-89.compute-1.amazonaws.com'
};

const ddbRegionsMap = {
Expand Down Expand Up @@ -70,7 +70,7 @@ export async function handler(event) {
console.log("Origin updated to %s for domain: %s", tenantRegion, tenantDomain);
} else {
request.origin.custom.domainName = regionsMap["default"];
console.log("Default origin used for domain: %s", tenantDomain);
console.log("Default origin (%s) used for domain: %s", regionsMap["default"], tenantDomain);
}
}
}
Expand Down

0 comments on commit 44e5595

Please sign in to comment.