alert.properties.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. #alert type is EMAIL/SMS
  18. alert.type=EMAIL
  19. # alter msg template, default is html template
  20. #alert.template=html
  21. # mail server configuration
  22. mail.protocol=SMTP
  23. mail.server.host=${MAIL_SERVER_HOST}
  24. mail.server.port=${MAIL_SERVER_PORT}
  25. mail.sender=${MAIL_SENDER}
  26. mail.user=${MAIL_USER}
  27. mail.passwd=${MAIL_PASSWD}
  28. # TLS
  29. mail.smtp.starttls.enable=${MAIL_SMTP_STARTTLS_ENABLE}
  30. # SSL
  31. mail.smtp.ssl.enable=${MAIL_SMTP_SSL_ENABLE}
  32. mail.smtp.ssl.trust=${MAIL_SMTP_SSL_TRUST}
  33. #xls file path,need create if not exist
  34. xls.file.path=${XLS_FILE_PATH}
  35. # Enterprise WeChat configuration
  36. enterprise.wechat.enable=${ENTERPRISE_WECHAT_ENABLE}
  37. enterprise.wechat.corp.id=${ENTERPRISE_WECHAT_CORP_ID}
  38. enterprise.wechat.secret=${ENTERPRISE_WECHAT_SECRET}
  39. enterprise.wechat.agent.id=${ENTERPRISE_WECHAT_AGENT_ID}
  40. enterprise.wechat.users=${ENTERPRISE_WECHAT_USERS}
  41. enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=$corpId&corpsecret=$secret
  42. enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=$token
  43. enterprise.wechat.team.send.msg={\"toparty\":\"$toParty\",\"agentid\":\"$agentId\",\"msgtype\":\"text\",\"text\":{\"content\":\"$msg\"},\"safe\":\"0\"}
  44. enterprise.wechat.user.send.msg={\"touser\":\"$toUser\",\"agentid\":\"$agentId\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"$msg\"}}