agent-rest
uses a webhook mechanism to communicate events back to the controller.
The URL that agent-rest
should send events to can be set with the --webhook-url
command line argument or with the ARIESD_WEBHOOK_URL
environment variable.
agent-rest
supports multiple webhooks.
To pass in multiple webhooks, simplify repeat the --webhook-url
argument for each url. Alternatively, a CSV list of webhook URLS can be set to the environment variable ARIESD_WEBHOOK_URL
.
This command registers both localhost:8082 and localhost:8083 as endpoints for aries-agent-rest to send notifications to:
./agent-rest start --api-host localhost:8080 --database-type=mem --inbound-host http@localhost:8081 --inbound-host-external http@https://example.com:8081 --webhook-url localhost:8082 --webhook-url localhost:8083 --agent-default-label MyAgent