dingtalk.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ## Request timeout
  2. # timeout: 5s
  3. ## Uncomment following line in order to write template from scratch (be careful!)
  4. #no_builtin_template: true
  5. ## Customizable templates path
  6. #templates:
  7. # - contrib/templates/legacy/template.tmpl
  8. ## You can also override default template using `default_message`
  9. ## The following example to use the 'legacy' template from v0.3.0
  10. #default_message:
  11. # title: '{{ template "legacy.title" . }}'
  12. # text: '{{ template "legacy.content" . }}'
  13. ## Targets, previously was known as "profiles"
  14. targets:
  15. webhook1: #todo 创建机器人
  16. # Change access_token=xxxxxxxxxxxx to your robot's url
  17. url: https://oapi.dingtalk.com/robot/send?access_token=053260093b9b7e06fe9e57f9ac7adc606d2073c91da2c45469aace7c67bab9c4
  18. # secret for signature
  19. # Change SEC000000000000000000000 to your robot's secret
  20. secret: SECe2946badc349a9aa059ad79a60ab8b68b9a63ea51ae4370a3e6017bf76438103
  21. webhook2:
  22. url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
  23. webhook_legacy:
  24. url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
  25. # Customize template content
  26. message:
  27. # Use legacy template
  28. title: '{{ template "legacy.title" . }}'
  29. text: '{{ template "legacy.content" . }}'
  30. webhook_mention_all:
  31. url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
  32. mention:
  33. all: true
  34. webhook_mention_users:
  35. url: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx
  36. mention:
  37. mobiles: ['156xxxx8827', '189xxxx8325']