verae-nats-accounts/nats.conf

25 lines
856 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Lab accounts sketch. Loopback only. Do not publish 4222.
# INTERNAL: middleware, account-balance, authz, identity.
# LEAF: access-leaf and remote leaf nodes — no billing.
# Loopback sketch. The live 3-node test cluster is verae-nats-cluster
# (10.10.10.2123 on vmbr1) and currently runs without accounts so every
# existing NATS_URL keeps working. Flip this file onto those guests only
# after clients use nats://internal:internal-dev@host:4222.
listen: 127.0.0.1:4222
http: 127.0.0.1:8222
jetstream {}
accounts {
INTERNAL {
users = [ { user: internal, password: internal-dev } ]
jetstream: enabled
}
LEAF {
users = [ { user: leaf, password: leaf-dev } ]
exports = []
imports = []
}
}
# Subject restrictions for LEAF are enforced in policy.json + access-leaf
# until this nats-server is started with full auth callout.