get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/test/configs/srv_a_tls.conf (about) 1 # Cluster Server A 2 3 listen: 127.0.0.1:5222 4 5 cluster { 6 listen: 127.0.0.1:5244 7 name: xyz 8 9 tls { 10 # Route cert 11 cert_file: "./configs/certs/srva-cert.pem" 12 # Private key 13 key_file: "./configs/certs/srva-key.pem" 14 # Specified time for handshake to complete 15 timeout: 2 16 17 # Optional certificate authority verifying connected routes 18 # Required when we have self-signed CA, etc. 19 ca_file: "./configs/certs/ca.pem" 20 } 21 22 # Routes are actively solicited and connected to from this server. 23 # Other servers can connect to us if they supply the correct credentials 24 # in their routes definitions from above. 25 26 routes = [ 27 nats-route://127.0.0.1:5246 28 ] 29 } 30 31 no_sys_acc: true