mirror of https://github.com/veypi/OneAuth.git
cfg demo
parent
f7ee8f7523
commit
cc32bd481f
@ -0,0 +1,29 @@
|
||||
|
||||
uuid: FR9P5t8debxc11aFF
|
||||
key: AMpjwQHwVjGsb1WC4WG6
|
||||
debug: true
|
||||
server_url: 127.0.0.1:4001
|
||||
media_path: /Users/veypi/test/media
|
||||
db_url: localhost:3306
|
||||
db_user: root
|
||||
db_pass: '123456'
|
||||
db_name: oneauth
|
||||
log_dir: null
|
||||
fs_root: /Users/veypi/test/media
|
||||
log_level: info
|
||||
nats_usr:
|
||||
- UCXFAAVMCPTATZUZX6H24YF6FI3NKPQBPLM6BNN2EDFPNSUUEZPNFKEL
|
||||
- SUACQNAAFKDKRBXS62J4JYZ7DWZS7UNUQI52BOFGGBUACHTDHRQP7I66GI
|
||||
nats_node:
|
||||
- UAU6HPAHVIQWODQ365HMSHGZPSXJHR35T6ACURR3STGXFZNWXFNG5EA6
|
||||
- SUACZVC4UWLCKFA3DJFIYO5XYYGPJRQEKCBC773PKCD4TZS52GDU6JJ2JE
|
||||
nats_sys:
|
||||
- UCOKXBGDAXXQOR4XUPUJ4O22HZ2A3KQN3JLCCYM3ISSKHLBZJXXQ3NLF
|
||||
- SUAEILQZDD2UT2ZNR6DCA44YCRKAZDYDOJRUPAUA7AOWFVGSSPFPCLXF24
|
||||
info:
|
||||
ws_url: http://127.0.0.1:4221
|
||||
nats_url: http://127.0.0.1:4222
|
||||
api_url: http://127.0.0.1:4001
|
||||
user_init_space: 300
|
||||
|
||||
|
@ -0,0 +1,53 @@
|
||||
# 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},
|
||||
],
|
||||
exports: [
|
||||
{stream: pub.>},
|
||||
{service: psrv.>},
|
||||
],
|
||||
imports: [
|
||||
{stream: {account: SYS, subject: usr.>}, prefix: a},
|
||||
],
|
||||
},
|
||||
nodes: {
|
||||
users: [
|
||||
{ nkey: UAU6HPAHVIQWODQ365HMSHGZPSXJHR35T6ACURR3STGXFZNWXFNG5EA6},
|
||||
],
|
||||
exports: [
|
||||
{stream: pub.>},
|
||||
{service: psrv.>},
|
||||
],
|
||||
},
|
||||
SYS: {
|
||||
users: [
|
||||
{ nkey: UCOKXBGDAXXQOR4XUPUJ4O22HZ2A3KQN3JLCCYM3ISSKHLBZJXXQ3NLF},
|
||||
{ user: cli, password: cli},
|
||||
],
|
||||
exports: [
|
||||
{stream: usr.>},
|
||||
{stream: node.>},
|
||||
{service: usr.>},
|
||||
{service: node.>},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
system_account: SYS
|
||||
|
@ -1,22 +0,0 @@
|
||||
# nats cfg
|
||||
#
|
||||
host: 127.0.0.1
|
||||
port: 4222
|
||||
|
||||
# 监控端口
|
||||
http: 127.0.0.1:8222
|
||||
|
||||
jetstream: {
|
||||
}
|
||||
|
||||
authorization: {
|
||||
users: [
|
||||
{ nkey: UCXFAAVMCPTATZUZX6H24YF6FI3NKPQBPLM6BNN2EDFPNSUUEZPNFKEL},
|
||||
{ user: cli, password: cli},
|
||||
]
|
||||
}
|
||||
|
||||
websocket: {
|
||||
listen: '0.0.0.0:4221',
|
||||
no_tls: true
|
||||
}
|
Loading…
Reference in New Issue