Skip to content

Commit

Permalink
Merge pull request #87 from FlowFuse/fix-privateCA
Browse files Browse the repository at this point in the history
Fix loading private CA certs in Instances
  • Loading branch information
Steve-Mcl authored Mar 22, 2024
2 parents 719b493 + 434e083 commit 98bf613
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const fs = require('fs')
const got = require('got')
const Docker = require('dockerode')

Expand Down Expand Up @@ -90,7 +89,7 @@ const createContainer = async (project, domain) => {
contOptions.Env.push('FORGE_LOG_PASSTHROUGH=true')
}

if (this._app.config.driver.options?.privateCA && fs.existsSync(this._app.config.driver.options?.privateCA)) {
if (this._app.config.driver.options?.privateCA) {
contOptions.Binds = [
`${this._app.config.driver.options.privateCA}:/usr/local/ssl-certs/chain.pem`
]
Expand Down

0 comments on commit 98bf613

Please sign in to comment.