kevmoo / dhttpd

A simple HTTP server that can serve up any directory, built with Dart.
https://pub.dev/packages/dhttpd
BSD 3-Clause "New" or "Revised" License
107 stars 30 forks source link

Added https support #32

Closed EP-u-NW closed 7 months ago

EP-u-NW commented 3 years ago

As suggested in #1 dart (and shelf) already come with SSL support. The only thing needed to use SSL is to tell shelf to use an initalized SecurityContext, so I added two simple parameters, which are realy just "command line proxies" for the appropriate SecurityContext methods.

MuhmdHsn313 commented 2 years ago

Good job!

maks commented 7 months ago

@kevmoo Not sure what happened to this PR? I have it working for a small project, all I needed to do was add support for setting the password as I quickly used the self signed cert from: https://github.com/dart-archive/dart-tutorials-samples/tree/master/httpserver/bin . Would you open to merging this PR if I or original author get it rebased onto current main branch and add password support?

kevmoo commented 7 months ago

@maks – feel free to send another PR "inspired" by this