oidc: start on activation

this is because dns setup can be done multiple times pre-activation
This commit is contained in:
Girish Ramakrishnan
2023-03-26 16:50:03 +02:00
parent ad7e921b5e
commit 77a9adbc39

View File

@@ -83,6 +83,7 @@ async function onActivated(options) {
await platform.start(options);
await cron.startJobs();
await dockerProxy.start(); // this relies on the 'cloudron' docker network interface to be available
await oidc.start(); // this requires dashboardFqdn to be set
// disable responding to api calls via IP to not leak domain info. this is carefully placed as the last item, so it buys
// the UI some time to query the dashboard domain in the restore code path
@@ -278,9 +279,6 @@ async function setDashboardDomain(domain, auditSource) {
await safe(appstore.updateCloudron({ domain }), { debug });
// this requires dashboardFqdn to be set
await oidc.start();
await eventlog.add(eventlog.ACTION_DASHBOARD_DOMAIN_UPDATE, auditSource, { domain, fqdn });
}