| 1 |
include 'platform.conf' |
| 2 |
|
| 3 |
port: 2233 |
| 4 |
|
| 5 |
# logging options |
| 6 |
debug: true # enable on reload |
| 7 |
trace: true # enable on reload |
| 8 |
logtime: true # enable on reload |
| 9 |
logtime_utc: true # enable on reload |
| 10 |
|
| 11 |
log_file: "nats-server.log" # change on reload |
| 12 |
pid_file: "nats-server.pid" # change on reload |
| 13 |
max_control_line: 512 # change on reload |
| 14 |
ping_interval: 5 # change on reload |
| 15 |
ping_max: 1 # change on reload |
| 16 |
write_deadline: "3s" # change on reload |
| 17 |
max_payload: 1024 # change on reload |
| 18 |
|
| 19 |
# Enable TLS on reload |
| 20 |
tls { |
| 21 |
cert_file: "../test/configs/certs/server-cert.pem" |
| 22 |
key_file: "../test/configs/certs/server-key.pem" |
| 23 |
ca_file: "../test/configs/certs/ca.pem" |
| 24 |
verify: true |
| 25 |
} |
| 26 |
|
| 27 |
# Enable authorization on reload |
| 28 |
authorization { |
| 29 |
user: tyler |
| 30 |
password: T0pS3cr3t |
| 31 |
timeout: 2 |
| 32 |
} |
| 33 |
|
| 34 |
cluster { |
| 35 |
listen: 127.0.0.1:-1 |
| 36 |
name: "abc" |
| 37 |
no_advertise: true # enable on reload |
| 38 |
ping_interval: '20s' |
| 39 |
ping_max: 8 |
| 40 |
} |
| 41 |
|
| 42 |
server_metadata { |
| 43 |
key1: value1 |
| 44 |
key2: value2 |
| 45 |
} |