Skip to content

Commit

Permalink
Merge pull request #7 from ONLYOFFICE/feature/fix_reverseproxy_defaul…
Browse files Browse the repository at this point in the history
…t_bug

Feature/fix reverseproxy default bug
  • Loading branch information
YaroslavPshenichnikov authored Jan 23, 2024
2 parents 468ab92 + aebd1e9 commit ed6d235
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docspace-reverse-proxy/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export const handler = async (event, context, callback) => {
if (regionFromRequest == null) {
console.log("Register portal request: awsRegion param is null. Trying set to default");

body["awsRegion"] = "eu-central-1";
originDomain = regionsMap["default"];
body["awsRegion"] = ddbRegionsMap["default"];
request.body.data = Buffer.from(JSON.stringify(body), 'utf8').toString('base64');
request.body.action = "replace";

Expand Down

0 comments on commit ed6d235

Please sign in to comment.