Skip to content

xOS/StatusPage

Repository files navigation

UptimeRobot Page 中文版

Another status page based on UptimeRobot

Docker Build Status license

修改说明

  • 前端改为中文显示;
  • 改变页面显示宽度;
  • 修改显示数据为最近 60 天(原版 45 天);
  • 增加显示当前日期数据(原版只显示到前一天);
  • Docker 环境时修改时区为东八区;
  • 其它布局微调

效果展示

Requirements

  • Node.js >= 10
  • Uptime Robot API key
  • Docker and docker-compose (optional)

Deploy

wget https://raw.githubusercontent.com/XOS/StatusPage/master/docker-compose.yml
docker-compose up -d

Configure

There are two ways to configure:

The file loading order is default.yml < ${NODE_ENV}.yml < environment variables. It's recommend to set secrets (e.g. API key) via environment variables and something complex (e.g. array and object) via files.

Parser Usage

We use the parser to analyze groups name, monitors name and group index (optional) which included in your original monitor's name. Default Parser is %group/%name, there are 3 variables now:

  • %group
  • %name
  • %index

You can change the backslash / to any separator you like, as long as it won't used in your group & monitor name (and index). To put index into your parser, you will able to sort your group in page manually. Easily write index for each group once (also for all if you like), and leave the blank of the index for other monitors in the same group.

There is example: Group Name/Index/Monitor Name

%group/%index/%name

For this format, you should write index in original name at Uptimerobots Control Panel for each group once:

GroupA/1/MonitorA

And leave the blank of the index for other monitors in the same group.

GroupA//MonitorB

About

UptimeRobot 状态页

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages

  • JavaScript 65.1%
  • Pug 16.7%
  • CSS 15.8%
  • Dockerfile 2.4%