Skip to content
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

Merged
merged 4 commits into from
Aug 12, 2020

Conversation

aricart
Copy link
Contributor

@aricart aricart commented Aug 5, 2020

  • added --cert, --key, --host options to file_server, as file_server is very useful but doesn't provide any TLSoptions.
  • added a basic test for getting a directory and checking that required arguments are provided for TLS.

… 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.
@CLAassistant
Copy link

CLAassistant commented Aug 5, 2020

CLA assistant check
All committers have signed the CLA.

@aricart
Copy link
Contributor Author

aricart commented Aug 5, 2020

realized in hastiness, that I forgot to add a mime type for .mjs.

@bartlomieju bartlomieju added this to the 1.3.0 milestone Aug 11, 2020
Copy link
Member

@lucacasonato lucacasonato left a 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:

  1. Allow serving on HTTPS with TLS options
  2. Allow specifying a host to listen on using --host
  3. Adding a media type for .mjs

In the future please do this in multiple pull requests.

std/http/file_server.ts Outdated Show resolved Hide resolved
std/http/file_server.ts Outdated Show resolved Hide resolved
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks @aricart

@aricart
Copy link
Contributor Author

aricart commented Aug 11, 2020

Thank you @lucacasonato!

@bartlomieju bartlomieju merged commit 91ff910 into denoland:master Aug 12, 2020
@aricart aricart deleted the tls-file-server branch August 12, 2020 12:33
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 21, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 24, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 24, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 24, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants