Commit 133a50c3 by fengfan

1

parent 4e6cdc41
var fs = require('fs');
let keypath = path.join(__dirname, "./keys/server.key")
let certpath = path.join(__dirname, "./keys/server.crt")
var options = {
key:fs.readFileSync('./keys/server.key'),
cert:fs.readFileSync('./keys/server.crt')
key:fs.readFileSync(keypath),
cert:fs.readFileSync(certpath)
}
// options
const express = require('express');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment