hasnat / docker-events-notifier

Docker events notifier
MIT License
10 stars 1 forks source link

Add application/json for discord like webhooks #6

Closed hasnat closed 1 year ago

hasnat commented 1 year ago

closes #5

new attribue in notifiers in config.xml where urls are http/https data_encoding can be used to instruct application/x-www-form-urlencoded or application/json type post request.

possible values for data_encoding

  1. json
  2. urlencode. -- e.g. for slack urlencode.payload

can be tried on docker image hasnat/docker-events-notifier:0.0.3.rc.1 check templates/discord.json for discord template and relative notification entry in config.xml

docker-events-notifier-screenshot-discord