1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

replaced tabs in config with spaces

Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
Matthias Hanel 2021-06-29 12:06:40 -04:00
parent 62a46ca305
commit 85b10a920f
No known key found for this signature in database
GPG Key ID: 15514DE17E348F7E

View File

@ -49,13 +49,13 @@ In the example, the system accounts are connected for demonstration purposes (yo
```txt ```txt
accounts { accounts {
SYS: { SYS: {
users: [{user: admin, password: admin}] users: [{user: admin, password: admin}]
}, },
ACC: { ACC: {
users: [{user: acc, password: acc}], users: [{user: acc, password: acc}],
jetstream: enabled jetstream: enabled
} }
} }
system_account: SYS system_account: SYS
``` ```
@ -68,11 +68,11 @@ To be started with `nats-server -c hub.conf`:
port: 4222 port: 4222
server_name: hub-server server_name: hub-server
jetstream { jetstream {
store_dir="./store_server" store_dir="./store_server"
domain=hub domain=hub
} }
leafnodes { leafnodes {
port: 7422 port: 7422
} }
include ./accounts.conf include ./accounts.conf
``` ```
@ -85,8 +85,8 @@ To be started with `nats-server -c leaf.conf`:
port: 4111 port: 4111
server_name: leaf-server server_name: leaf-server
jetstream { jetstream {
store_dir="./store_leaf" store_dir="./store_leaf"
domain=leaf domain=leaf
} }
leafnodes { leafnodes {
remotes = [ remotes = [
@ -391,12 +391,12 @@ It is possible to give access to the entire consumer API `$JS.hub.API.CONSUMER.>
```txt ```txt
accounts { accounts {
SYS: { SYS: {
users: [{user: admin, password: admin}] users: [{user: admin, password: admin}]
}, },
ACC: { ACC: {
users: [{user: acc, password: acc}], users: [{user: acc, password: acc}],
jetstream: enabled jetstream: enabled
exports: [ exports: [
# minimum export needed to allow source/mirror to create a consumer on the fly # minimum export needed to allow source/mirror to create a consumer on the fly
{service: "$JS.hub.API.CONSUMER.CREATE.*", response_type: "stream"} {service: "$JS.hub.API.CONSUMER.CREATE.*", response_type: "stream"}
@ -407,23 +407,23 @@ accounts {
# minimum export needed to ack messages for durable consumer `dur` in stream `aggregate-test-leaf`. (clients only - source and mirror do not use this) # minimum export needed to ack messages for durable consumer `dur` in stream `aggregate-test-leaf`. (clients only - source and mirror do not use this)
{service: "$JS.ACK.aggregate-test-leaf.dur.>"} {service: "$JS.ACK.aggregate-test-leaf.dur.>"}
] ]
} }
IMPORT_MIRROR: { IMPORT_MIRROR: {
users: [{user: import_mirror, password: import_mirror}], users: [{user: import_mirror, password: import_mirror}],
jetstream: enabled jetstream: enabled
imports: [ imports: [
{service: {account: ACC, subject: "$JS.hub.API.CONSUMER.CREATE.*"}, to: "JS.acc@hub.API.CONSUMER.CREATE.*" } {service: {account: ACC, subject: "$JS.hub.API.CONSUMER.CREATE.*"}, to: "JS.acc@hub.API.CONSUMER.CREATE.*" }
{stream: {account: ACC, subject: deliver.acc.hub.import_mirror.>}} {stream: {account: ACC, subject: deliver.acc.hub.import_mirror.>}}
] ]
} }
IMPORT_CLIENT: { IMPORT_CLIENT: {
users: [{user: import_client, password: import_client}], users: [{user: import_client, password: import_client}],
jetstream: enabled jetstream: enabled
imports: [ imports: [
{service: {account: ACC, subject: "$JS.hub.API.CONSUMER.MSG.NEXT.aggregate-test-leaf.dur"}, to: "JS.acc@hub.API.CONSUMER.MSG.NEXT.aggregate-test-leaf.dur" } {service: {account: ACC, subject: "$JS.hub.API.CONSUMER.MSG.NEXT.aggregate-test-leaf.dur"}, to: "JS.acc@hub.API.CONSUMER.MSG.NEXT.aggregate-test-leaf.dur" }
{service: {account: ACC, subject: "$JS.ACK.aggregate-test-leaf.dur.>"}} {service: {account: ACC, subject: "$JS.ACK.aggregate-test-leaf.dur.>"}}
] ]
} }
} }
system_account: SYS system_account: SYS
``` ```