(express)
| 8 | } |
| 9 | |
| 10 | const httpsServer = (express) => { |
| 11 | const fs = require('fs') |
| 12 | const options = { |
| 13 | key: fs.readFileSync(process.env.SSL_PRIVATE_KEY_PATH, 'utf8'), |
| 14 | cert: fs.readFileSync(process.env.SSL_CERTIFICATE_PATH, 'utf8') |
| 15 | } |
| 16 | return require('https').createServer(options, express) |
| 17 | } |
| 18 | |
| 19 | class Server { |
| 20 | constructor(port) { |
nothing calls this directly
no outgoing calls
no test coverage detected