-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added TLS serve abilities to file_server #6962
Conversation
… very useful but doesn't provide any tls options. added basic test for getting a directory and checking that required arguments are provided for TLS.
realized in hastiness, that I forgot to add a mime type for .mjs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me this looks like three independent changes to the http server:
- Allow serving on HTTPS with TLS options
- Allow specifying a host to listen on using
--host
- Adding a media type for .mjs
In the future please do this in multiple pull requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks @aricart
Thank you @lucacasonato! |
--cert
,--key
,--host
options to file_server, as file_server is very useful but doesn't provide any TLSoptions.