DenoDDeno
Powered by
rabbit_rabbitR
Deno•3y ago•
3 replies
rabbit_rabbit

Serve Fresh over HTTPS locally

How can I serve Fresh over HTTPS locally? In node I might generate certs and do

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)
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)


What would the equivalent be for Fresh?

Thanks in advance!
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to serve HTTPS with the Deno.serve() API
ZidanZZidan / help
3y ago
Run remote Fresh application code locally.
cknightCcknight / help
3y ago
grpc / http2 / https in fresh.
LikoneLLikone / help
3y ago