const port = normalizePort(process.env.PORT || '3000');
const path = require('path');
const https = require('https');
const fs = require('fs');
const options = {
  key: fs.readFileSync(path.join(__dirname, '../sslcert/server.key')),
  cert: fs.readFileSync(path.join(__dirname, '../sslcert/server.pem'))
}
const server = https.createServer(options, app);

相关文章:

  • 2021-12-24
  • 2022-01-30
  • 2021-11-18
  • 2021-08-06
  • 2022-12-23
  • 2021-12-30
  • 2021-04-24
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2021-04-09
  • 2021-09-14
  • 2021-12-25
相关资源
相似解决方案