Skip to content

Commit

Permalink
Update nginx.js
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Dec 18, 2024
1 parent dbab4ec commit 74219eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/internal/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const internalNginx = {
locationCopy.forward_host = split.shift();
locationCopy.forward_path = `/${split.join('/')}`;
}
locationCopy.env = process.env;

renderedLocations += await renderEngine.parseAndRender(template, locationCopy);
}
Expand Down Expand Up @@ -206,6 +207,8 @@ const internalNginx = {
locationsPromise = Promise.resolve();
}

host.env = process.env;

locationsPromise.then(() => {
renderEngine
.parseAndRender(template, host)
Expand Down

0 comments on commit 74219eb

Please sign in to comment.