demo: https://tz.liusy.eu.org/ FROM WJY
先创建config.json再执行下面命令。
修改xxxx为你的网站名字,如LiuSY@ServerStatus
docker run -d --name status --env NAME=xxxx -p 83:80 -p 35601:35601 -v $(pwd)/config.json:/opt/config.json fallfor/status
可以反代83到80端口
修改配置后需docker restart status
客户端配置可以使用该脚本
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh && chmod +x status.sh && ./status.sh
上面脚本的服务端配置原路径在这/usr/local/ServerStatus/server/config.json
config.json模板
{"servers":
[
{
"username": "oa",
"password": "doub.io",
"name": "Oracle ARM",
"type": "KVM",
"host": "None",
"location": "kr",
"disabled": false ,
"region": "kr"
},
{
"username": "aws",
"password": "doub.io",
"name": "aws",
"type": "XEN",
"host": "None",
"location": "Tokyo",
"disabled": false ,
"region": "jp"
}
]
}
region
内容为小写字母。