ldn-inbox-server
Version:
A demonstration Event Notifications Inbox server
66 lines • 2.42 kB
JSON
{
"registry": [
{ "path": "inbox2/.*" , "with": {
"url": "inbox2/",
"inbox": "./inbox2",
"inboxPublic": 1,
"inboxWritable": 0
}}
],
"notification_handler": {
"multi": {
"handlers": [
[
{
"id": "@handler/notification_handler/jsonpath_filter.js",
"anyOf": [
[
{ "path": "$.type" , "value": "Offer" }
]
]
},
"@handler/notification_handler/valid_artifact.js" ,
{
"id": "@handler/notification_handler/eventlog.js",
"log": "@artifact:strip@.jsonld",
"dir": "@artifact:strip@"
},
{
"id": "@handler/notification_handler/offer_memento.js",
"$lock": true,
"actor": {
"id": "http://localhost:8000/profile/card#me" ,
"inbox": "http://localhost:8000/inbox/" ,
"type": "Service"
},
"target": {
"id": "http://localhost:8001/profile/card#me" ,
"inbox": "http://localhost:8001/inbox/" ,
"type": "Service"
}
}
] ,
[
{
"id": "@handler/notification_handler/on_error.js",
"handler": {
"id" : "@handler/notification_handler/nothing.js",
"demo": 123
}
},
{
"id": "@handler/notification_handler/jsonpath_filter.js",
"anyOf": [
[
{ "path": "$.type" , "value": "Announce" } ,
{ "path": "$.actor.id", "value": "https://labs.eventnotifications.net/service/m/profile/card.ttl" }
]
]
} ,
"@handler/notification_handler/valid_eventlog.js",
"@handler/notification_handler/add_timemap_link.js"
]
]
}
}
}