Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/nginx.conf Secret

Last active Oct 16, 2020
Embed
What would you like to do?
stream {
# List of upstream AMQP connections
upstream stream_amqp {
least_conn;
server 192.168.0.24:5672;
server 192.168.0.108:5672;
server 192.168.0.124:5672;
server 192.168.0.164:5672;
server 192.168.0.227:5672;
}
# List of upstream STOMP connections
upstream stream_stomp {
least_conn;
server 192.168.0.24:61613;
server 192.168.0.108:61613;
server 192.168.0.124:61613;
server 192.168.0.164:61613;
server 192.168.0.227:61613;
}
# AMQP definition
server {
listen 5672; # the port to listen on this server
proxy_pass stream_amqp; # forward traffic to this upstream group
proxy_timeout 3s;
proxy_connect_timeout 3s;
}
# STOMP definition
server {
listen 61613; # the port to listen on this server
proxy_pass stream_stomp; # forward traffic to this upstream group
proxy_timeout 3s;
proxy_connect_timeout 3s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.