get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/test/configs/srv_a_perms.conf (about) 1 # Cluster Server A with Permissions 2 3 listen: 127.0.0.1:5222 4 http: 127.0.0.1:5223 5 6 cluster { 7 listen: 127.0.0.1:5244 8 name: xyz 9 10 authorization { 11 user: ruser 12 password: top_secret 13 timeout: 0.5 14 } 15 16 permissions { 17 import: "foo" 18 export: { 19 allow: "*" 20 deny: ["foo", "nats"] 21 } 22 } 23 24 # Routes are actively solicited and connected to from this server. 25 # Other servers can connect to us if they supply the correct credentials 26 # in their routes definitions from above. 27 28 routes = [ 29 nats-route://ruser:top_secret@127.0.0.1:5246 30 ] 31 } 32 33 no_sys_acc: true