mirror of https://github.com/cppla/ServerStatus
Merge branch 'dev'
commit
e6d9edee2d
10
README.md
10
README.md
|
@ -6,7 +6,7 @@
|
||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
[](https://github.com/cppla/ServerStatus)
|
[](https://github.com/cppla/ServerStatus)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -26,12 +26,8 @@
|
||||||
`x86_64`: docker pull cppla/serverstatus:latest
|
`x86_64`: docker pull cppla/serverstatus:latest
|
||||||
`arm64`: docker pull cppla/serverstatus:arm
|
`arm64`: docker pull cppla/serverstatus:arm
|
||||||
|
|
||||||
|
mkdir /serverstatus && cd /serverstatus && wget https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json
|
||||||
wget https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json
|
docker run -d --restart=always --name=serverstatus -v /serverstatus/config.json:/ServerStatus/server/config.json -v /serverstatus/json:/usr/share/nginx/html/json -p 80:80 -p 35601:35601 cppla/serverstatus:latest
|
||||||
docker run -d --restart=always --name=serverstatus -v {$path}/config.json:/ServerStatus/server/config.json -p {$port}:80 -p {$port}:35601 cppla/serverstatus:latest
|
|
||||||
|
|
||||||
eg:
|
|
||||||
docker run -d --restart=always --name=serverstatus -v ~/config.json:/ServerStatus/server/config.json -p 80:80 -p 35601:35601 cppla/serverstatus:latest
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ tr.odd.expandRow > :hover { background: #000 !important; }
|
||||||
#month_traffic { min-width: 85px; max-width: 95px;}
|
#month_traffic { min-width: 85px; max-width: 95px;}
|
||||||
#network { min-width: 115px; }
|
#network { min-width: 115px; }
|
||||||
#cpu, #ram, #hdd { min-width: 45px; max-width: 90px; }
|
#cpu, #ram, #hdd { min-width: 45px; max-width: 90px; }
|
||||||
#ping { max-width: 90px; }
|
#ping { max-width: 100px; }
|
||||||
|
|
||||||
@media only screen and (max-width: 1080px) {
|
@media only screen and (max-width: 1080px) {
|
||||||
#type, tr td:nth-child(4) { display:none; visibility:hidden; }
|
#type, tr td:nth-child(4) { display:none; visibility:hidden; }
|
||||||
|
|
|
@ -17,7 +17,7 @@ tr.odd.expandRow > :hover { background: #FFF !important; }
|
||||||
#month_traffic { min-width: 85px; max-width: 95px;}
|
#month_traffic { min-width: 85px; max-width: 95px;}
|
||||||
#network { min-width: 115px; }
|
#network { min-width: 115px; }
|
||||||
#cpu, #ram, #hdd { min-width: 45px; max-width: 90px; }
|
#cpu, #ram, #hdd { min-width: 45px; max-width: 90px; }
|
||||||
#ping { max-width: 90px; }
|
#ping { max-width: 100px; }
|
||||||
|
|
||||||
@media only screen and (max-width: 1080px) {
|
@media only screen and (max-width: 1080px) {
|
||||||
#type, tr td:nth-child(4) { display:none; visibility:hidden; }
|
#type, tr td:nth-child(4) { display:none; visibility:hidden; }
|
||||||
|
|
|
@ -252,7 +252,7 @@ function uptime() {
|
||||||
TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-warning";
|
TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-warning";
|
||||||
else
|
else
|
||||||
TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-success";
|
TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-success";
|
||||||
TableRow.children["ping"].children[0].children[0].innerHTML = PING_10010 + "%💻" + PING_189 + "%💻" + PING_10086 + "%";
|
TableRow.children["ping"].children[0].children[0].innerHTML = PING_10010 + "%🌍" + PING_189 + "%🌍" + PING_10086 + "%";
|
||||||
|
|
||||||
// Custom
|
// Custom
|
||||||
if (result.servers[i].custom) {
|
if (result.servers[i].custom) {
|
||||||
|
|
Loading…
Reference in New Issue