@cocreate/cli
Advanced tools
Comparing version 1.45.1 to 1.45.2
@@ -405,4 +405,4 @@ module.exports = { | ||
{ | ||
"path": "../CoCreate-metrics-server", | ||
"repo": "github.com/CoCreate-app/CoCreate-metrics-server.git" | ||
"path": "../CoCreate-metrics", | ||
"repo": "github.com/CoCreate-app/CoCreate-metrics.git" | ||
}, | ||
@@ -409,0 +409,0 @@ { |
{ | ||
"name": "@cocreate/cli", | ||
"version": "1.45.1", | ||
"version": "1.45.2", | ||
"description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,2 +9,6 @@ const util = require('node:util'); | ||
const certificates = new Map() | ||
const certbotPath = `/etc/letsencrypt/live/`; | ||
const fullchainPath = `${certbotPath}/fullchain.pem`; | ||
const privkeyPath = `${certbotPath}/privkey.pem`; | ||
const combinedPath = `${certbotPath}/haproxy.pem`; | ||
@@ -100,2 +104,32 @@ | ||
const combineCertificate = (host) => { | ||
const certbotPath = `/etc/letsencrypt/live/${host}`; | ||
const fullchainPath = `${certbotPath}/fullchain.pem`; | ||
const privkeyPath = `${certbotPath}/privkey.pem`; | ||
const combinedPath = `${certbotPath}/haproxy.pem`; | ||
fs.readFile(fullchainPath, (err, fullchainData) => { | ||
if (err) { | ||
console.error('Error reading fullchain.pem:', err); | ||
return; | ||
} | ||
fs.readFile(privkeyPath, (err, privkeyData) => { | ||
if (err) { | ||
console.error('Error reading privkey.pem:', err); | ||
return; | ||
} | ||
const combinedData = `${fullchainData}\n${privkeyData}`; | ||
fs.writeFile(combinedPath, combinedData, (err) => { | ||
if (err) { | ||
console.error('Error writing combined haproxy.pem:', err); | ||
} else { | ||
console.log('Successfully combined certificates for HAProxy.'); | ||
} | ||
}); | ||
}); | ||
}); | ||
}; | ||
async function test(host) { | ||
@@ -102,0 +136,0 @@ try { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190204
45
2412
35
7