20 lines
446 B
Smarty
20 lines
446 B
Smarty
# NATS with JetStream: portal's records, events and projections live
|
|||
|
|
# here. bootstrap.sh renders this into nats.conf from .env.
|
||
|
|
port: 4222
|
||
|
|
http_port: 8222
|
||
|
|
|
||
|
|
max_payload: 8388608
|
||
|
|
max_connections: 1000
|
||
|
|
|
||
|
|
# User and password rather than a token: URL credentials
|
||
|
|
# (nats://user:pass@host) behave the same in every client library.
|
||
|
|
authorization {
|
||
|
|
users = [
|
||
|
|
{ user: "portal", password: "${NATS_PASSWORD}" }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
jetstream {
|
||
|
|
store_dir: /data
|
||
|
|
}
|