Skip to content

Commit 303877a

Browse files
author
Artem Buslaev
committed
fix nats config [skip ci]
Signed-off-by: Artem Buslaev <[email protected]>
1 parent 19558de commit 303877a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

configs/nats.conf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
1+
# Client port of 4222 on all interfaces
2+
port: 4222
3+
4+
# HTTP monitoring port
5+
monitor_port: 8222
6+
7+
# This is for clustering multiple servers together.
8+
cluster {
9+
# It is recommended to set a cluster name
10+
name: "my_cluster"
11+
12+
# Route connections to be received on any interface on port 6222
13+
port: 6222
14+
15+
# Routes are protected, so need to use them with --routes flag
16+
# e.g. --routes=nats-route://ruser:T0pS3cr3t@otherdockerhost:6222
17+
authorization {
18+
user: ruser
19+
password: T0pS3cr3t
20+
timeout: 2
21+
}
22+
23+
# Routes are actively solicited and connected to from this server.
24+
# This Docker image has none by default, but you can pass a
25+
# flag to the nats-server docker image to create one to an existing server.
26+
routes = []
27+
}
28+
129
max_payload: 64MB

0 commit comments

Comments
 (0)