1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-01-08 05:09:15 +00:00
ctrl/scripts/nats-server/generate-nats-conf/generate-nats-conf.sh

27 lines
555 B
Bash
Raw Permalink Normal View History

2021-10-05 11:39:03 +00:00
#!/bin/bash
2021-10-05 11:37:45 +00:00
cat >./nats.conf <<EOF
2021-12-08 11:12:41 +00:00
port: 4222
2021-10-05 11:37:45 +00:00
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.>"]
}
}
}
2021-10-05 11:37:45 +00:00
]
}
EOF