dromara / domain-admin

域名SSL证书监测平台、SSL证书申请自动续签。Domain and SSL Cert monitor System.
https://domain-admin.cn/
MIT License
1.85k stars 265 forks source link

内网通知Webhook消息无法发送 #109

Open einnse opened 4 months ago

einnse commented 4 months ago

请问是否支持内网部署,导入内网公网域名一直超时,只能公网部署使用吗

mouday commented 4 months ago

内网也可以,关闭自动更新,手动设置到期时间就可以

einnse commented 4 months ago

@mouday image 阿里云ecs部署通知webhook能成功发送到飞书机器人,内网机器部署只提示操作成功,没有接受到消息 image 内网的主机还是容器curl webhook地址都是通的,也没有日志,请问这个问题应该如何排查了,谢谢!

einnse commented 4 months ago

image

{
    "Content-Type": "application/json"
}
{
    "msg_type": "interactive",
    "card": {
        "config": {
                "wide_screen_mode": true,
                "enable_forward": true
        },
        "elements": [{
                "tag": "div",
                "text": {
                        "tag": "plain_text",
                        "content": "",
                        "lines": 1
                        }
                        ,
                "fields": [

                        {

                        "text": {
                            "tag": "lark_md",
                            "content": "**域名证书 **:  <ul> {%- for row in list %} {%- if row.expire_days > 0 %} <li> {{row.domain}} {{"当前域名或证书  申请时间: "}} {{row.start_date or '-' }} - {{"到期时间: "}} {{row.expire_date or '-' }} {{"剩余: "}}( {% if row.expire_days > 0 %} {{row.expire_days}} {% endif %}  ) {{"天; "}} {% endif %} {% endfor %} </li> </ul> "
                        }
                    }

                ]

                },

         {
                "actions": [{
                        "tag": "button",

                        "text": {
                                "content": "域名或证书过期提醒 :domain-admin:",
                                "tag": "lark_md"
                        },
                        "url": "https://dc.console.aliyun.com/",
                        "type": "primary",
                        "value": {
                                         "chosen": "approve"
                        }
                }],
                "tag": "action"
        }],
        "header": {
                "title": {
                        "content": "域名或证书过期  告警",
                        "tag": "plain_text"
                },
                "template": "red"
        }
    }
}

webhook配置

mouday commented 4 months ago

有满足条件的域名吗,设置到期天数大一些试试