Skip to content

Commit

Permalink
fix shared ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 14, 2024
1 parent a424549 commit 8bb2ce2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,16 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
} finally {
await writeLog("$> Applying nginx ssl config on " + subdomain);
await writeLog(await nginxExec.setDirect(subdomain, nginxInfos));
await writeLog("$> Applying SSL links with global domain");
await writeLog(await virtualminExec.pushVirtualServerConfig(subdomaindata['ID'], {
'ssl_same': sharedSSL.id,
'ssl_key': path.join(sharedSSL.path, 'ssl.key'),
'ssl_cert': path.join(sharedSSL.path, 'ssl.cert'),
'ssl_chain': path.join(sharedSSL.path, 'ssl.ca'),
'ssl_combined': path.join(sharedSSL.path, 'ssl.combined'),
}));
if (sharedSSL) {
await writeLog("$> Applying SSL links with global domain");
await writeLog(await virtualminExec.pushVirtualServerConfig(subdomaindata['ID'], {
'ssl_same': sharedSSL.id,
'ssl_key': path.join(sharedSSL.path, 'ssl.key'),
'ssl_cert': path.join(sharedSSL.path, 'ssl.cert'),
'ssl_chain': path.join(sharedSSL.path, 'ssl.ca'),
'ssl_combined': path.join(sharedSSL.path, 'ssl.combined'),
}));
}
}
break;
case 'root':
Expand Down

0 comments on commit 8bb2ce2

Please sign in to comment.