| 1 |
# Simple config file |
| 2 |
|
| 3 |
server_name: testing_server |
| 4 |
|
| 5 |
server_metadata { |
| 6 |
key1: value1 |
| 7 |
key2: value2 |
| 8 |
} |
| 9 |
|
| 10 |
feature_flags { |
| 11 |
feature: false |
| 12 |
fix: true |
| 13 |
revert_fix: true |
| 14 |
} |
| 15 |
|
| 16 |
listen: 127.0.0.1:4242 |
| 17 |
|
| 18 |
http: 8222 |
| 19 |
|
| 20 |
http_base_path: /nats |
| 21 |
|
| 22 |
authorization { |
| 23 |
user: derek |
| 24 |
password: porkchop |
| 25 |
timeout: 1 |
| 26 |
} |
| 27 |
|
| 28 |
# logging options |
| 29 |
debug: false |
| 30 |
trace: true |
| 31 |
logtime: false |
| 32 |
syslog: true |
| 33 |
remote_syslog: "udp://foo.com:33" |
| 34 |
|
| 35 |
# pid file |
| 36 |
pid_file: "/tmp/nats-server/nats-server.pid" |
| 37 |
|
| 38 |
# prof_port |
| 39 |
prof_port: 6543 |
| 40 |
|
| 41 |
# max_connections |
| 42 |
max_connections: 100 |
| 43 |
|
| 44 |
# max_subscriptions (per connection) |
| 45 |
max_subscriptions: 1000 |
| 46 |
|
| 47 |
# max_pending |
| 48 |
max_pending: 10000000 |
| 49 |
|
| 50 |
# maximum control line |
| 51 |
max_control_line: 2048 |
| 52 |
|
| 53 |
# maximum payload |
| 54 |
max_payload: 65536 |
| 55 |
|
| 56 |
# ping interval and no pong threshold |
| 57 |
ping_interval: "60s" |
| 58 |
ping_max: 3 |
| 59 |
|
| 60 |
# how long server can block on a socket write to a client |
| 61 |
write_deadline: "3s" |
| 62 |
|
| 63 |
lame_duck_duration: "4m" |
| 64 |
|
| 65 |
# report repeated failed route/gateway/leafNode connection |
| 66 |
# every 24hour (24*60*60) |
| 67 |
connect_error_reports: 86400 |
| 68 |
|
| 69 |
# report failed reconnect events every 5 attempts |
| 70 |
reconnect_error_reports: 5 |