You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# nats cfg
|
|
|
|
#
|
|
|
|
host: 0.0.0.0
|
|
|
|
port: 4222
|
|
|
|
|
|
|
|
# 监控端口
|
|
|
|
http: 127.0.0.1:8222
|
|
|
|
websocket: {
|
|
|
|
listen: '0.0.0.0:4221',
|
|
|
|
no_tls: true
|
|
|
|
}
|
|
|
|
|
|
|
|
jetstream: {
|
|
|
|
}
|
|
|
|
|
|
|
|
accounts: {
|
|
|
|
usrs: {
|
|
|
|
users: [
|
|
|
|
{ nkey: UCXFAAVMCPTATZUZX6H24YF6FI3NKPQBPLM6BNN2EDFPNSUUEZPNFKEL},
|
|
|
|
{ user: cli, password: cli},
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
# {stream: node.>},
|
|
|
|
# {service: node.>},
|
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
{stream: {account: SYS, subject: >}},
|
|
|
|
{service: {account: SYS, subject: >}},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
nodes: {
|
|
|
|
users: [
|
|
|
|
{ nkey: UAU6HPAHVIQWODQ365HMSHGZPSXJHR35T6ACURR3STGXFZNWXFNG5EA6},
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
# {stream: >},
|
|
|
|
# {service: >},
|
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
# {stream: {account: usrs, subject: node.>}, prefix: 'usr'},
|
|
|
|
# {service: {account: usrs, subject: >}},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
SYS: {
|
|
|
|
users: [
|
|
|
|
{ nkey: UCOKXBGDAXXQOR4XUPUJ4O22HZ2A3KQN3JLCCYM3ISSKHLBZJXXQ3NLF},
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
{stream: >},
|
|
|
|
{service: >},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
system_account: SYS
|
|
|
|
|