Closed afinch7 closed 4 years ago
Nice! Thanks for this. When this is ready I'll make a pre-release npm. I think your changes to server.ts
are fine, but we'll need to test it against our live build to make sure it's embedded properly.
You can merge this when ready. I've moved on to working on fly.rs for new features.
Is this ready? Unrelated, is fly.rs no more? It got archived today.
Added additional options to dev/local server for tls. Just figured I would get the ball rolling for https://github.com/superfly/fly/issues/143.
--use-tls
switches everything over to a https server.--tls-key-path
is for specifying a path to a key.--tls-cert-path
is for specifying a path to a cert.It should default to a dev certificate and key if none is specified.
I refactored the
Server
class to be a wrapper for a http server instead of a extension. This is likely to cause some issues, but I don't really see any other good solutions.