Natvps.id – Talk is a platform server monitoring lightweight which includes docker statistics, data history, and warning functions. Beszel can be an alternative for server monitoring applications such as Nezha, status, and others.
This article discusses the steps to install beszel on NAT VPS using a docker, along with the Nginx configuration for Reverse-Proxy. This article uses Ubuntu 22.04 as a reference, but you can use other distributions such as Debian and Centos. Make sure the OS used supports the docker.
Port forwarding configuration
Considering we use grout, we need to add 2 Port Forwarding Configuration on the virtualizor panel (or other VPS panels according to the provider), namely Port Forwarding HTTP and HTTPS For the beszel domain.
For example, in this article will use a domain monitor.tutorial.mdinata.my.id to access beszel. You are free to change the domain according to your choice. Record this port and domain, because we will use it again in the deploy process.

Don’t forget to add DNS Records to go to your NAT VPS public IP, like this:

Install Docker
We will use a docker and compile a docker for spread He spoke.
First, install curly Using Orders:
apt update && apt install curl -y

Then, run manuscript Automatic installation from the docker by entering:
curl -fsSL get.docker.com | sh
Wait until the installation process is complete.

Spread the conversation
Beszel provides a compose docker configuration that is ready to be used on the document page, so we don’t need to write configuration files docker-compose.yml from the beginning.
Create a new directory:
mkdir beszel cd beszel/

Then, create a file docker-compose.yml using nano:
apt install nano -y # jika belum nano docker-compose.yml
Then, stick the following configuration:
#
# Reference:
services:
beszel:
image: henrygd/beszel:latest
container_name: beszel
restart: unless-stopped
ports:
- 8090:8090
volumes:
- ./beszel_data:/beszel_data
- ./beszel_socket:/beszel_socket
beszel-agent:
image: henrygd/beszel-agent:latest
container_name: beszel-agent
restart: unless-stopped
network_mode: host
volumes:
- ./beszel_socket:/beszel_socket
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
LISTEN: /beszel_socket/beszel.sock
# Do not remove quotes around the key
KEY: 'UPDATE ME'

Save the file with CTRL-X, Y, then enter.
Finally, run Beszel:
docker compose up -d
Wait until the process spread finished.

Nginx Configuration (Reverse Proxy)
So that we can access the URL through a domain like monitor.tutorial.mdinata.my.idwe can use Reverse Proxy Like Nginx.
First, install Nginx through the command:
# Hapus Apache2 dan pendukungnya (biasanya terpasang secara bawaan di VPS OpenVZ) apt purge apache2* -y # Install NGINX apt install nginx -y

Create a new host configuration specifically for Beszel:
nano /etc/nginx/sites-available/beszel
Then stick the following configuration:
server {
listen 80;
server_name monitor.tutorial.mdinata.my.id;
client_max_body_size 10M;
location / {
# check
proxy_set_header Connection '';
proxy_http_version 1.1;
proxy_read_timeout 360s;
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;
proxy_pass
}
}
Adjust monitor.tutorial.mdinata.my.id with your domain.

Activate the configuration with:
ln -sf /etc/nginx/sites-available/beszel /etc/nginx/sites-enabled/beszel # Restart NGINX systemctl restart nginx

Produce SSL certificate (let’s encryption)
So that our domain can be accessed through HTTPS, we need to make a SSL certificate. We can use a free SSL certificate from Let’s Encrypt through Certbot.
Install Certbot and Nginx plugin use the command:
apt install python3-certbot python3-certbot-nginx

So, produce Certificate through Certbot with the command
certbot --nginx -d monitor.tutorial.mdinata.my.id
Change monitor.tutorial.mdinata.my.id with your domain.

Happy! Your current domain can be accessed via a safe connection https.
Didote
Beszel can be accessed through your previous domain. Example: https://monitor.tutorial.mdinata.my.id.

Add a host server
To add a host server (the server where the beszel is depicted) to bemonitorclick Add the server in the upper right corner.

- Name: Server name. Free
- Host / IP: MUST! For servers where beszel is installed, enter /beszel_socket/beszel.sock
Above specifically for the server where beszel is installed. For other servers, please use IP and SSH Port

Public key copy Because we will use it. If so, click Add the system.
Return to the terminal, reopen the docker-compose.yml file again:
nano docker-compose.yml
At the key (located at the bottom), replace Update me With a public key that was copied, like this:

Restart Docker Compose with:
docker compose down docker compose up -d

Open Beszel again, and check whether the Host Server is added.

Cover
Thus this article is about the steps to install beszel on NAT VPS. If you are confused or doubtful, don’t hesitate to ask questions in the telegram group @ipv6indonesia. Thank You!
Game Center
Game News
Review Film
Rumus Matematika
Anime Batch
Berita Terkini
Berita Terkini
Berita Terkini
Berita Terkini
review anime