Node.js script to check the status of my server pages. https://kevin-mok.com/server/
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Kevin Mok 92df36760b
Add wthr.ml
5 роки тому
.gitignore Add wthr.ml 5 роки тому
README.md Add wthr.ml 5 роки тому
package-lock.json Create status JSON 5 роки тому
package.json Create status JSON 5 роки тому
server-pages.csv Add wthr.ml 5 роки тому
server-pages.service Add systemd service/timer 5 роки тому
server-pages.timer Add systemd service/timer 5 роки тому
server-status.js Add wthr.ml 5 роки тому

README.md

Server Pages

Converts a CSV containing information about my server pages into a JSON containing information about the pages' status, update time and server uptime. Created for use on my personal website's server information page.

Sample Output

Running node server-status.js (after npm i) would produce the following output:

{
  "sites": [
    {
      "shortUrl": "kevin-mok.com",
      "url": "https://kevin-mok.com",
      "siteTitle": " Kevin Mok ",
      "description": "Personal site (this site).",
      "repo": "Kevin-Mok/my-site",
      "repoUrl": "https://git.kevin-mok.com/Kevin-Mok/my-site",
      "status": "up"
    },
    ...
  ],
  "updateTime": 1569209941343,
  "upSince": "2019-09-22 19:30:10"
}

Built With