Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.08 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.08 KB

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