Uptime Kuma is a modern replacement for the once-popular Uptime Robot service. It is an open-source solution that can be installed on your own server, offering more control over its functionality and data privacy. In this tutorial, we will show you how to install Uptime Kuma on FreeBSD Latest.
To follow this guide, you will need:
Update FreeBSD Latest using the following command:
sudo pkg update && sudo pkg upgrade
Install the necessary dependencies using the following command:
sudo pkg install node yarn sqlite3
Create a new directory where you want to host Uptime Kuma using the following command:
sudo mkdir -p /var/www/uptime-kuma
Clone Uptime Kuma's source code from Github in the /var/www/uptime-kuma directory using the following command:
sudo git clone https://github.com/louislam/uptime-kuma.git /var/www/uptime-kuma
Go to the cloned directory using the following command:
cd /var/www/uptime-kuma
Install the required packages using Yarn by running the following command:
sudo yarn install --production --ignore-engines
Create a new configuration file by copying the sample config file using the following command:
sudo cp .env.sample .env
Open the configuration file using your favorite text editor and modify the following variables:
APP_URL=http://localhost:5000
DB_CONNECTION=sqlite
Save and close the file.
Create a new database using the following command:
sudo touch database/uptime-kuma.sqlite
Set permissions for the database file using the following command:
sudo chown -R www:www database/uptime-kuma.sqlite
sudo yarn start
Note: Replace "IP_ADDRESS" with the actual IP address of your server.
sudo touch /usr/local/etc/nginx/sites-available/uptime-kuma
server {
listen 80;
server_name domain.tld;
root /var/www/uptime-kuma/public;
location / {
try_files $uri /index.html;
}
location /api {
proxy_pass http://localhost:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Save and close the file.
sudo ln -s /usr/local/etc/nginx/sites-available/uptime-kuma /usr/local/etc/nginx/sites-enabled/uptime-kuma
sudo service nginx restart
Congratulations! You have successfully installed Uptime Kuma on FreeBSD Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!