| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- ##
- ## nats-server.conf -- NATS server configuration
- ##
- debug: false
- trace: true
- logtime: false
- 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
- max_pending_size: 10000000
- # client communication encryption
- tls {
- cert_file: "@l_prefix@/etc/x509/example-server.crt.pem"
- key_file: "@l_prefix@/etc/x509/example-server.key.pem"
- ca_file: "@l_prefix@/etc/x509/example-ca.crt.pem"
- 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/x509/example-server.crt.pem"
- key_file: "@l_prefix@/etc/x509/example-server.key.pem"
- ca_file: "@l_prefix@/etc/x509/example-ca.crt.pem"
- }
- # peer authentication requirements
- authorization {
- user: "example"
- password: "example"
- timeout: 1.0
- }
- # peer connection sockets (outgoing)
- #routes = [
- # nats-route://example:secret@127.0.0.1:4245
- # nats-route://example:secret@127.0.0.1:4246
- #]
- }
|