37 lines
882 B
Plaintext
37 lines
882 B
Plaintext
# Client port of 4222 on all interfaces
|
|
port: 4222
|
|
|
|
# HTTP monitoring port
|
|
monitor_port: 8222
|
|
|
|
# This is for clustering multiple servers together.
|
|
cluster {
|
|
|
|
# Route connections to be received on any interface on port 6222
|
|
port: 6222
|
|
|
|
# Routes are protected, so need to use them with --routes flag
|
|
# e.g. --routes=nats-route://ruser:T0pS3cr3t@otherdockerhost:6222
|
|
# authorization {
|
|
# user: ruser
|
|
# password: T0pS3cr3t
|
|
# timeout: 0.75
|
|
# }
|
|
|
|
# Routes are actively solicited and connected to from this server.
|
|
# This Docker image has none by default, but you can pass a
|
|
# flag to the nats-server docker image to create one to an existing server.
|
|
routes = []
|
|
}
|
|
|
|
# max_connections
|
|
max_connections: 100
|
|
|
|
# max_subscriptions (per connection)
|
|
max_subscriptions: 1000
|
|
|
|
# maximum protocol control line
|
|
max_control_line: 512
|
|
|
|
# maximum payload
|
|
max_payload: 65536 |