1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
flohmarkt_ynh/conf/urlwatch_urls.yaml
Chris Vogel dbb9891351 simple urlwatch integration
that sends an email to the admin of flohmarkt or the admin group of yunohost
when the user database changes
2024-06-15 13:34:58 +02:00

11 lines
389 B
YAML

name: "watch for changes in user database"
kind: "url"
url: "http://__APP__:__PASSWORD_COUCHDB_FLOHMARKT__@127.0.0.1:5984/flohmarkt/_find"
method: "POST"
data: '{"selector": { "role": "User", "name": { "$ne": "instance" }},
"fields": ["name","email","active"], "sort": [ "name" ]}'
headers:
Content-Type: application/json
Accept: application/json
filter:
- shellpipe: 'jq .docs'