proxyauth: user OpenID instead of basic auth

This commit is contained in:
Johannes Zellner
2024-04-15 12:35:03 +02:00
parent caf1c37171
commit 21d7438bbe
5 changed files with 70 additions and 2 deletions

View File

@@ -544,6 +544,11 @@ async function writeAppLocationNginxConfig(app, location, certificatePath) {
};
data.ip = app.containerIp;
data.port = app.manifest.httpPort;
if (data.proxyAuth.enabled) {
data.proxyAuth.oidcClientId = app.id;
data.proxyAuth.oidcEndpoint = (await dashboard.getLocation()).fqdn;
}
} else if (type === Location.TYPE_SECONDARY) {
data.ip = app.containerIp;
const secondaryDomain = app.secondaryDomains.find(sd => sd.fqdn === fqdn);