You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.5 KiB

##
## nats-server.conf -- NATS server configuration
##
debug: false
trace: false
logtime: true
log_file: "@l_prefix@/var/nats-server/log/nats-server.log"
pid_file: "@l_prefix@/var/nats-server/run/nats-server.pid"
# client listening sockets
net: "127.0.0.1"
port: 4242
http_port: 8222
# client communication settings
max_connections: 100
max_control_line: 512
max_payload: 65536
# client communication encryption
tls {
cert_file: "@l_prefix@/etc/nats-server/server.crt"
key_file: "@l_prefix@/etc/nats-server/server.key"
ca_file: "@l_prefix@/etc/nats-server/ca.crt"
timeout: 2.0
verify: false
}
# client authorization
authorization {
users = [ {
user: "example"
password: "example"
} ]
timeout: 1.0
}
# cluster configuration
cluster {
# peer listening socket (incoming)
host: "127.0.0.1"
port: 4244
tls {
cert_file: "@l_prefix@/etc/nats-server/server.crt"
key_file: "@l_prefix@/etc/nats-server/server.key"
ca_file: "@l_prefix@/etc/nats-server/ca.crt"
}
# peer authentication requirements
authorization {
user: "example"
password: "example"
timeout: 1.0
}
# peer connection sockets (outgoing)
#routes = [
# nats-route://example:example@127.0.0.2:4244
# nats-route://example:example@127.0.0.3:4244
#]
}