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.
OneAuth/script/nats.cfg

57 lines
1.1 KiB
INI

1 year ago
# 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},
1 year ago
],
exports: [
# {stream: node.>},
# {service: node.>},
1 year ago
],
imports: [
{stream: {account: SYS, subject: >}},
{service: {account: SYS, subject: >}},
1 year ago
],
},
nodes: {
users: [
{ nkey: UAU6HPAHVIQWODQ365HMSHGZPSXJHR35T6ACURR3STGXFZNWXFNG5EA6},
],
exports: [
# {stream: >},
# {service: >},
],
imports: [
# {stream: {account: usrs, subject: node.>}, prefix: 'usr'},
# {service: {account: usrs, subject: >}},
1 year ago
],
},
SYS: {
users: [
{ nkey: UCOKXBGDAXXQOR4XUPUJ4O22HZ2A3KQN3JLCCYM3ISSKHLBZJXXQ3NLF},
],
exports: [
{stream: >},
{service: >},
1 year ago
],
},
}
system_account: SYS