Uptime Kuma 搭建一个简易在线托管监控平台
可以将各类资源挂载到这个网页监控工具上。方便全局掌控网站或者IP的VPS心跳延迟情况。建康情况全局掌控!
更新环境
apt update -y && apt upgrade -y && apt install -y curl wget sudo socat
安装 Docker
curl -fsSL https://get.docker.com | sh
docker配置
https://github.com/kejilion/docker/blob/main/Uptime%20Kuma
创建nginx目录结构
mkdir -p /home/nginx
touch /home/nginx/nginx.conf
mkdir -p /home/nginx/certs
申请证书
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --register-account -m xxxx@gmail.com
~/.acme.sh/acme.sh --issue -d kuma.kejilion.eu.org --standalone
下载证书
~/.acme.sh/acme.sh --installcert -d kuma.kejilion.eu.org --key-file /home/nginx/certs/key.pem --fullchain-file /home/nginx/certs/cert.pem
下载nginx配置模板
https://github.com/kejilion/nginx/blob/main/nginx3.conf
启动nginx
docker run -d --name nginx --restart=always -p 80:80 -p 443:443 -v /home/nginx/nginx.conf:/etc/nginx/nginx.conf -v /home/nginx/certs:/etc/nginx/certs -v /home/nginx/html:/usr/share/nginx/html nginx:latest
作者源地址
https://github.com/louislam/uptime-kuma
111111111
回复删除