Serve Fresh over HTTPS locally
How can I serve Fresh over HTTPS locally? In node I might generate certs and do
What would the equivalent be for Fresh?
Thanks in advance!
What would the equivalent be for Fresh?
Thanks in advance!
https.createServer({
key: fs.readFileSync(path.join(__dirname, '..', 'certs/localhost.key'), 'utf8').toString(),
cert: fs.readFileSync(path.join(__dirname, '..', 'certs/localhost.crt'), 'utf8').toString(),
}).listen(8000)