The downtime application for kdm-manager (https://kdm-manager.com)
Install host dependencies:
# apt-get -y update # apt-get -y install python3 python3-venv python3-dev supervisor nginx git
Clone the repo.
Install app dependencies:
$ cd kdm-manager-downtime $ python3 -m venv venv $ source venv/bin/activate $ pip install -r requirements.txt $ deactivate
Run the dev server from the root of the project directory:
$ cd kdm-manager-downtime $ ./server.sh dev
Assuming everything went according to plan with pip, this should start listening on 0.0.0.0:8020 and responding to requests.
In order to deploy, do all of the installation tasks above, make sure you've got
SSL certificates configured and run the
install.sh script as root:
# cd kdm-manager-downtime # ./install.sh
(Failing to do something about the SSL dependencies will prevent nginx from reloading, but everything else should work.)
install.sh script will reload both nginx and
supervisord, at which point
the app should be running on 127.0.0.0:8020 and nginx should be listening for
requests for https://downtime.kdm-manager.com, https://kdm-manager.com, etc.