-
Notifications
You must be signed in to change notification settings - Fork 90
/
nats-server.conf
49 lines (40 loc) · 1.11 KB
/
nats-server.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
debug = true
trace = true
# Client port of 4222 on all interfaces
port: 4222
# HTTP monitoring port
monitor_port: 8222
jetstream: enabled
jetstream {
store_dir: /data/jetstream
max_mem: 8G
max_file: 10G
}
authorization {
ADMIN = {
publish = ">"
subscribe = ">"
}
users = [
{user: "natsadmin", password : AkxjzcHaK4uRqInuPRLeoUYYV5xYKIWv3jlzCehgoe, permissions: $ADMIN}
]
}
# This is for clustering multiple servers together.
# server_name=nats-master
# cluster {
# # It is recommended to set a cluster name
# name: "nats_cluster"
# # Route connections to be received on any interface on port 6222
# port: 6222
# # Routes are protected, so need to use them with --routes flag
# # e.g. --routes=nats-route://ruser:cT20ApSv3c2sr3xtbg@otherdockerhost:6222
# authorization {
# user: ruser
# password: cT20ApSv3c2sr3xtbg
# timeout: 2
# }
# # Routes are actively solicited and connected to from this server.
# # This Docker image has none by default, but you can pass a
# # flag to the nats-server docker image to create one to an existing server.
# routes = []
# }