mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-15 17:51:15 +00:00
26 lines
555 B
Bash
Executable file
26 lines
555 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cat >./nats.conf <<EOF
|
|
port: 4222
|
|
tls {
|
|
cert_file: "/app/le.crt"
|
|
key_file: "/app/le.key"
|
|
}
|
|
|
|
authorization: {
|
|
users = [
|
|
{
|
|
# central
|
|
nkey: FILL-IN-CENTRAL-USER-KEY-HERE
|
|
permissions: {
|
|
publish: {
|
|
allow: ["FILL-IN-ORGANISATION-HERE.>","errorCentral.>","central.>"]
|
|
}
|
|
subscribe: {
|
|
allow: ["FILL-IN-ORGANISATION-HERE.>","errorCentral.>","central.>"]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
EOF
|