Closed Ayanda-D closed 5 years ago
Contributions are welcome :)
Proxy protocol support in Ranch core is under consideration, let's wait until there's a decision.
There's a good chance that Proxy protocol support in Ranch will land before this is addressed in this plugin. It may go into 3.7.x depending on the scope of changes in Ranch and @essen's recommendation.
Ranch 1.7 is literally just the current Ranch + PROXY support so it's probably fine. :-)
As for this plugin I released Cowboy 2.6 today and will propose a patch to web stomp/mqtt tomorrow to be merged whenever Cowboy 2.6 gets used in RabbitMQ.
Do we want a new rabbitmq_web_stomp
option named proxy_protocol
or is it enough to be able to specify it from cowboy_opts
?
Consistency vs less code?
@essen sorry, missed the comment above in notifications. We are willing to have a bit more code for consistency with the documented way of using proxy protocol with AMQP 0-9-1/AMQP 1.0 and MQTT.
No worries that was for next week. :-) Struggled writing a test in the meantime.
I've opened a PR at https://github.com/rabbitmq/rabbitmq-web-stomp/pull/98 feel free to try, but note it'll probably be broken in AWS at the time being due to a bug in Ranch that will be fixed soon-ish.
cheers! ðŸ¤
Similar to direct STOMP & AMQP, Web-STOMP listeners should also support proxy-protocol.