port: 4222
http_port: 8222

jetstream {
    store_dir: "/data/jetstream"
    max_mem_store: 2GB
    max_file_store: 10GB
}

accounts: {
  router: {
    users: [
      {user: "router", password: "router-secret-change-me"}
    ]
    permissions: {
      publish: { allow: ["message.processed.>", "agent.run.requested", "agent.run.completed.>"] }
      subscribe: { allow: ["message.received.>", "agent.run.completed.>"] }
    }
  }
  worker: {
    users: [
      {user: "worker", password: "worker-secret-change-me"}
    ]
    permissions: {
      publish: { allow: ["agent.run.completed.>", "agent.run.failed.>"] }
      subscribe: { allow: ["agent.run.requested", "agent.run.requested.test"] }
    }
  }
  gateway: {
    users: [
      {user: "gateway", password: "gateway-secret-change-me"}
    ]
    permissions: {
      publish: { allow: ["message.received.>", "attachment.created.>"] }
      subscribe: { allow: ["message.processed.>", "message.sent.>"] }
    }
  }
  memory: {
    users: [
      {user: "memory", password: "memory-secret-change-me"}
    ]
    permissions: {
      publish: { allow: ["memory.indexed.>", "memory.graph.updated.>"] }
      subscribe: { allow: ["memory.store.>", "memory.retrieve.>"] }
    }
  }
  system: {
    users: [
      {user: "admin", password: "admin-secret-change-me"}
    ]
    permissions: {
      publish: { allow: ["$SYS.>", "$JS.>"] }
      subscribe: { allow: ["$SYS.>", "$JS.>", "_INBOX.>"] }
    }
  }
}

system_account: system
