Install uptime kuma on Ubutu 20.04
$sudo apt update -y && sudo apt upgrade -y
$sudo apt install docker.io -y
$sudo docker volume create uptime-kuma
$sudo docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma
Access URL:3001 to start monitor your services
Set up reverse proxy
$sudo apt install apache2
$sudo a2enmod ssl proxy proxy_ajp proxy_wstunnel proxy_http rewrite deflate headers proxy_balancer proxy_connect proxy_html
$sudo systemctl restart apache2
$sudo nano /etc/apache2/sites-available/kuma.conf
<VirtualHost :80>
ServerName sub.domain.com
ProxyPass / http://localhost:3001/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.) "ws://localhost:3001/$1" [P,L]
<VirtualHost>
replace sub.domain.com with your domain
$sudo a2dissite 000-default.conf
$sudo a2ensite kuma.conf
$sudo systemctl reload apache2
Add SSL
$sudo apt install certbot
$sudo apt install python3-certbot-apache
$sudo certbot --apache -d your-domain-name.com
replace your-domain-name with your domain name