gabrielcsapo / node-git-server

🎡 A configurable git server written in Node.js
https://gabrielcsapo.github.io/node-git-server
MIT License
253 stars 73 forks source link

HTTPS Support #33

Closed oscartbeaumont closed 6 years ago

oscartbeaumont commented 6 years ago

Does this module have https support?

jlxip commented 6 years ago

Personally I don't need this. And I would vote against it. In my opinion, all NodeJS-related traffic should go through another program, such as NGINX, before going out to the internet. It's much easier to configure SSL/TLS in NGINX than in any other program. And you can have subdomains easily for every instance of NodeJS instead of using a bunch of random ports.

echopoint commented 6 years ago

It currently doesn't create an https connection by default. Though, it wouldn't be hard or a bad idea to add, just small set of extra config parameters would be needed. When I get a little more time I'll add it and push a PR for it.

gabrielcsapo commented 6 years ago

@oscartbeaumont as @jlxip said there are better ways to deal with SSL traffic, but the ability to do such things would make this library better. @echopoint are you will to pick this up or you want me to take a go at it?

echopoint commented 6 years ago

If you want to hammer it out first I won't be offended. I just don't know if I can get to it this week.

gabrielcsapo commented 6 years ago

@echopoint let me see what I can do, I will keep updating this thread with progress, if you don't see me comment anything I have made no progress 😆

oscartbeaumont commented 6 years ago

I am going to build this feature today and do a pull request when I am done.

oscartbeaumont commented 6 years ago

The other thing is can I modify the example server in the README.MD to import the path module so that the code works without changing it? Also do you want an example of https adding under that in the README or somewhere else?

jlxip commented 6 years ago

@oscartbeaumont That'd be good hahaha. I had to write the line that imports path every time I copy-pasted.

oscartbeaumont commented 6 years ago

I have done a pull request on my changes.

echopoint commented 6 years ago

See PR #35

gabrielcsapo commented 6 years ago

added in https://github.com/gabrielcsapo/node-git-server/pull/35