Skip to content

Commit 4121c99

Browse files
committed
ts: lib/config/defaultSSL.js
1 parent 739f635 commit 4121c99

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
'use strict'
1+
import * as fs from "fs";
22

3-
const fs = require('fs')
4-
5-
function getFile (path) {
3+
function getFile(path) {
64
if (fs.existsSync(path)) {
75
return path
86
}
97
return undefined
108
}
119

12-
module.exports = {
10+
const defaultSSLConfig = {
1311
sslKeyPath: getFile('/run/secrets/key.pem'),
1412
sslCertPath: getFile('/run/secrets/cert.pem'),
1513
sslCAPath: getFile('/run/secrets/ca.pem') !== undefined ? [getFile('/run/secrets/ca.pem')] : [],
1614
dhParamPath: getFile('/run/secrets/dhparam.pem')
1715
}
16+
17+
export = defaultSSLConfig

0 commit comments

Comments
 (0)