diff --git a/doc/nats-server-relay-configuration/README.md b/doc/nats-server-relay-configuration/README.md deleted file mode 100644 index c221533..0000000 --- a/doc/nats-server-relay-configuration/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# Relay configuration - -Example config where we allow **ship1** to send a message to **ship2** relayed via **central**. - -```json -port: 4222 - -authorization: { - users = [ - { - # central - nkey: - permissions: { - publish: { - allow: [">","errorCentral.>"] - } - subscribe: { - allow: [">","errorCentral.>"] - } - } - } - { - # ship1 - nkey: - permissions: { - publish: { - allow: ["central.>","errorCentral.>","ship1.>","ship2.central.REQRelay.EventACK"] - # deny: ["*.REQRelay.>"] - } - subscribe: { - allow: ["central.>","ship1.>","errorCentral.REQErrorLog.EventACK.reply","*.central.REQRelay.EventACK.reply"] - } - } - } - { - # ship2 - nkey: - permissions: { - publish: { - allow: ["central.>","errorCentral.>","ship2.>"] - } - subscribe: { - allow: ["central.>","ship2.>","errorCentral.REQErrorLog.EventACK.reply"] - } - } - } - ] -} -```