Support PROXY Protocol #33
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is it possible to support PROXY protocol out of the box? Or have an option to pass in a custom http / https module. The latter would allow us to use a wrapper like https://github.com/cusspvz/proxywrap
Hmm... I don't currently have a good way to hijack the underlying
net
server to do that.Unfortunately the networking stack is one of its most poorly thought out and implemented parts of node - due to being implemented so early and maintaining backwards compatibility for so long.
It's definitely a feature that I could add, and I do think it's a great idea, but it's not something I'm available to work on in my free time right now.
I'd be happy to accept a PR or to do it as a contract job.
Also, since you're doing something with proxying, you may find Telebit to be of use.
Another good option would be to expose the Greenlock Express helpers for use with other servers aside from the
http
module.What's your level of expertise with node?
This is what I have working in our production env for now - hengwoon/greenlock-express.js#1
It would be better if it was an option on require('@root/greenlock-express').init() but not sure if that's the best place for it.
It's pretty tailored to our use case hence it's only changed in a few tactical places
What I'd like to do is turn it inside out so that there's an example of using the components of Greenlock Express with an
net
server of your choosing.I don't think that passing in an option is generally bad, but my experience has been that the more that lives inside of Greenlock, the more difficult it is to manage.
Since that's a niche use case and not something that is generally "convenient" for someone to do, I'd rather have an example file to copy/paste than move the config for that use case into the code.