Skip to content

stgloorious/statuspage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status Page for Homelab

This is the source code for my simple status website built using Flask. Upon visiting the site, the Flask app makes a few simple queries to see which services are online.

Screenshot

TODO

  • Basic functionality
  • Config file instead of hard-coded domains
  • Config file instead of hard-coded queries
  • Add more informative text instead of "OK" and "UNREACHABLE"
  • IPv6 things

Development

For local development, use

flask --app statuspage run

Deployment

See the Flask documentation for more information. I use Apache with simple CGI because there is no (performance) reason to set up FastCGI or similar.

Provide a config.json with your domains, based on config.json.template

Configure your webserver with CGI to run the script. Make sure to not expose unwanted files (.git, __pycache__, config.json).

Issues

If you run into issues using ping, make sure capabalities for normal users are set:

setcap cap_net_raw+p /bin/ping

Releases

No releases published

Packages

No packages published