Skip to content

Commit

Permalink
Handle .well-known dir for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Oct 20, 2024
1 parent c31dafe commit e18d333
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/executor/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ class DockerExecutor {
service.ports[i] = conf;
}
}
// make sure to handle .well-known
let wellKnownConf = nginx.config.locations?.find(x => x.match == '/.well-known/');
if (!wellKnownConf) {
if (!nginx.config.locations)
nginx.config.locations = [];
nginx.config.locations.push({
match: '/.well-known/',
alias: nginx.root + '/.well-known/',
});
nginxChanged = true;
}

// nginx replace port docker
let matchedConf = nginx.config.locations?.find(x => x.match == '/');
if (!matchedConf) {
Expand Down

0 comments on commit e18d333

Please sign in to comment.