diff --git a/src/executor/docker.js b/src/executor/docker.js index 31309ac..f3bf427 100644 --- a/src/executor/docker.js +++ b/src/executor/docker.js @@ -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) {