nats-server.conf 669 B

12345678910111213141516171819202122232425
  1. # Client port of 4222 on all interfaces
  2. port: 4222
  3. # HTTP monitoring port
  4. monitor_port: 8222
  5. # This is for clustering multiple servers together.
  6. cluster {
  7. # Route connections to be received on any interface on port 6222
  8. port: 6222
  9. # Routes are protected, so need to use them with --routes flag
  10. # e.g. --routes=nats-route://ruser:T0pS3cr3t@otherdockerhost:6222
  11. authorization {
  12. user: ruser
  13. password: T0pS3cr3t
  14. timeout: 2
  15. }
  16. # Routes are actively solicited and connected to from this server.
  17. # This Docker image has none by default, but you can pass a
  18. # flag to the gnatsd docker image to create one to an existing server.
  19. routes = []
  20. }