-
Notifications
You must be signed in to change notification settings - Fork 1
/
nats1.conf
107 lines (78 loc) · 1.8 KB
/
nats1.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
listen: 10.91.26.225:4222
server_name : server225
jetstream {
store_dir: "/home/nats/jsmdata"
max_mem: 1G
max_file: 100G
}
accounts {
TEST1 : {
jetstream: enabled
users: [
{
user: "u1"
password: "p1"
permissions: {
publish: {
},
subscribe: {
}
}
allowed_connection_types: ["STANDARD"]
}
]
},
TEST2: {
jetstream: enabled
users: [
{
user: "your_user"
password: "your_passwd"
permissions: {
publish: {
},
subscribe: {
}
}
allowed_connection_types: ["STANDARD","MQTT"]
}
]
},
SYS: {
users: [
{user: "root", password: "abcd", allowed_connection_types: ["STANDARD"]}
]
}
}
system_account: SYS
max_connections: 1000
max_payload : 64MB
#monitoring http service.
#Warning: nats-server does not have authentication/authorization for the monitoring endpoint
#make sure to not expose the monitoring port to the internet
http: 10.91.26.225:8222
#logging
debug: true
trace: false
logtime: true
logfile_size_limit: 100MB
log_file: "/home/nats/logs/nats-server.log"
cluster {
listen: 10.91.26.225:4244
name : cluster1
#to advertise how this server can be contacted by other cluster members.
advertise : 10.91.26.225:4244
authorization: {
user: "mqrouter"
password: "abcd"
}
# a list of other servers (URLs) to cluster with
routes = [
nats-route://mqrouter:abcd@10.91.26.226:4244
nats-route://mqrouter:abcd@10.91.26.227:4244
]
}
mqtt {
listen: 10.91.26.225:1883
max_ack_pending: 100
}