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