SSL certificate and domain name expiration reminder platform

Because I often forget whether the certificate is about to expire, some access problems occur after it expires.

  1. docker installation and deployment

Of course, you can access mysql, and sqlite is used by default.

version: "3"
services:
  domain-admin:
    image: mouday/domain-admin:latest
    container_name: domain-admin
    volumes:
     - ./data:/app/database
     - ./logs:/app/logs
    ports:
      - "8000:8000"
    networks:
      - domain-admin

networks:
  domain-admin:
    ipam:
      driver: default
      config:
        - subnet: 172.18.0.0/16 
  1. nginx configuration forwarding
server {
    
    
    listen 80;
    server_name  ssldomain.luozixu.com;
    return 301 https://$host$request_uri;
}

server {
    
    
    listen 443    ssl;
    server_name   ssldomain.luozixu.com;
    access_log    /var/log/nginx/ssldomain_access.log json;
    error_log     /var/log/nginx/ssldomain_error.log;
    ssl_certificate     conf.d/luozixu.com.pem;
    ssl_certificate_key conf.d/luozixu.com.key;
    location / {
    
    
     proxy_pass http://192.168.16.3:8000;
    }


}
  1. You can directly access ip: port 8000 without configuring a domain name, account number: password admin/123456
    Insert image description here

  2. Configure DingTalk reminder for expiration
    Insert image description here
    Insert image description here

{
    
    
    "Content-Type": "application/json"
}
##
{
    
    
"msgtype": "text",
         "text": {
    
    
             "content": "域名或证书过期提醒"
          }
       }
  1. Refer to the official website

Guess you like

Origin blog.csdn.net/weixin_43606975/article/details/131683263