Commit 133a50c3 by fengfan

1

parent 4e6cdc41
var fs = require('fs'); var fs = require('fs');
let keypath = path.join(__dirname, "./keys/server.key")
let certpath = path.join(__dirname, "./keys/server.crt")
var options = { var options = {
key:fs.readFileSync('./keys/server.key'), key:fs.readFileSync(keypath),
cert:fs.readFileSync('./keys/server.crt') cert:fs.readFileSync(certpath)
} }
// options // options
const express = require('express'); 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