We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 739f635 commit 4121c99Copy full SHA for 4121c99
1 file changed
lib/config/defaultSSL.js lib/config/defaultSSL.tslib/config/defaultSSL.js renamed to lib/config/defaultSSL.ts
@@ -1,17 +1,17 @@
1
-'use strict'
+import * as fs from "fs";
2
3
-const fs = require('fs')
4
-
5
-function getFile (path) {
+function getFile(path) {
6
if (fs.existsSync(path)) {
7
return path
8
}
9
return undefined
10
11
12
-module.exports = {
+const defaultSSLConfig = {
13
sslKeyPath: getFile('/run/secrets/key.pem'),
14
sslCertPath: getFile('/run/secrets/cert.pem'),
15
sslCAPath: getFile('/run/secrets/ca.pem') !== undefined ? [getFile('/run/secrets/ca.pem')] : [],
16
dhParamPath: getFile('/run/secrets/dhparam.pem')
17
+
+export = defaultSSLConfig
0 commit comments