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

HTTPS support #111

Open
fedetango opened this issue Jan 12, 2023 · 3 comments
Open

HTTPS support #111

fedetango opened this issue Jan 12, 2023 · 3 comments

Comments

@fedetango
Copy link

Does the module have support for HTTPS / HTTP2? If not, would you consider implementing it?

Thanks

@axkibe
Copy link

axkibe commented Jan 24, 2023

@fedetango
Copy link
Author

It does. See:
https://gabrielcsapo.github.io/node-git-server/docs/intro

Thanks for the reply.

However, there are things that I can't find in this link. For example, how do I establish the certificates that the server uses?

@verside2
Copy link

verside2 commented Apr 3, 2023

Thanks for the reply.

However, there are things that I can't find in this link. For example, how do I establish the certificates that the server uses?

You should use options in listen method.

 /**
   * starts a git server on the given port
   * @param  port  - the port to start the server on
   * @param  options  - the options to add extended functionality to the server
   * @param  options.type - this is either https or http (the default is http)
   * @param  options.key - private key in PEM format for the https server
   * @param  options.cert - cert chains in PEM format for the https server
   * @param  callback - the function to call when server is started or error has occurred
   */
  listen(port: number, options?: GitServerOptions, callback?: () => void): Git {

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

No branches or pull requests

3 participants