Skip to content

Commit

Permalink
Fix changing SSL mode
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed May 24, 2024
1 parent 95428af commit 1773401
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domcloud-bridge",
"version": "0.48.0",
"version": "0.48.1",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
});
}
// if LE ON AND force self-sign / shared on, must turn off
// if it was shared, just assume that's also LE ON
} else if ((selfSignSsl || sharedSSL) && ((subdomaindata['SSL shared with'] && changed) || subdomaindata['Lets Encrypt renewal'] == 'Enabled')) {
// if it was shared or ssl path don't match, just assume that's also LE ON
} else if ((selfSignSsl || sharedSSL) && ((subdomaindata['SSL shared with'] && changed && !expectedSslMode) || subdomaindata['Lets Encrypt renewal'] == 'Enabled')) {
await writeLog("$> Generating self signed cert and turning off let's encrypt renewal");
await virtExec("generate-cert", {
domain: subdomain,
Expand Down

0 comments on commit 1773401

Please sign in to comment.