forked from mirrors/probot
Still support PRIVATE_KEY env var
This commit is contained in:
parent
89e3310582
commit
e472931c02
|
@ -9,7 +9,7 @@ program
|
||||||
.option('-i, --integration <id>', 'ID of the GitHub Integration', process.env.INTEGRATION_ID)
|
.option('-i, --integration <id>', 'ID of the GitHub Integration', process.env.INTEGRATION_ID)
|
||||||
.option('-s, --secret <secret>', 'Webhook secret of the GitHub Integration', process.env.WEBHOOK_SECRET || 'development')
|
.option('-s, --secret <secret>', 'Webhook secret of the GitHub Integration', process.env.WEBHOOK_SECRET || 'development')
|
||||||
.option('-p, --port <n>', 'Port to start the server on', process.env.PORT || 3000)
|
.option('-p, --port <n>', 'Port to start the server on', process.env.PORT || 3000)
|
||||||
.option('-c, --cert <file>', 'Path to certificate of the GitHub Integration', readCert, process.env.CERT)
|
.option('-c, --cert <file>', 'Path to certificate of the GitHub Integration', readCert, process.env.CERT || process.env.PRIVATE_KEY)
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
function readCert(path) {
|
function readCert(path) {
|
||||||
|
|
Loading…
Reference in New Issue