由于经常忘记了证书是否要过期,导致过期了出现一些访问上的问题
- docker安装部署
当然可以接入mysql,默认使用的sqlite
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
- nginx配置转发
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;
}
}
-
可以不配置域名,直接访问ip:8000端口,账号:密码 admin/123456
-
配置到期钉钉提醒
{
"Content-Type": "application/json"
}
##
{
"msgtype": "text",
"text": {
"content": "域名或证书过期提醒"
}
}
- 参考官网