'Perform RabbitMq through nginx

I would like to perform actions through nginx.

Like :

MQ->addQueue("work","to do");
//This queue performs to nginx listener or connection
server {
    listen 5672; // or connect
    proxy_pass http://stream_workers
}
//Then 
Worker->on('work',httpData->{body:"to do"});

Basically convert job to http request.

My problem is I can't find any modules that connect nginx to rabbitmq for performing queues.



Solution 1:[1]

You need to use the stream module for this

stream {
  server {
    listen 5672;
    proxy_pass rabbitmq:5672;
  }
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1