How to Install Glance in Nat Vps


Natvps.idGlance is self-hosted dashboard which contain feeding We, such as shortcuts, application status, and so on. A glance view can be made home page Our browser can always open feeds when opening the browser.

This article discusses the steps to install glance in 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 domain of view.

For example, in this article will use a domain Home.tutorial.mdinata.my.id to access glance. You are free to change the domain according to your choice. Record this port and domain, because we will use it again in the install 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 Glance.

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.

Install the view

To put up a view, we will manuscript official to take configuration innate Glance from its repositories, so we don’t need to create configuration files from scratch.

First, create a new directory to glance.

mkdir glance
cd glance/

West Docker Compose file:

apt install nano -y # Jika belum
nano docker-compose.yml

Then, fill in the following configuration:

services:
  glance:
    container_name: glance
    image: glanceapp/glance
    restart: unless-stopped
    volumes:
      - ./config:/app/config
    ports:
      - 8080:8080

Then, download examples of glance configurations with:

mkdir config && wget -O config/glance.yml 

Please change the configuration as you wish, but you can also edit it later.

Run Glance:

docker compose up -d

Wait until the process spread finished. Deploy can first take a few minutes because it has to download all picture Glance from the start.

Nginx Configuration (Reverse Proxy)

So that we can access the URL through a domain like detect.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 glance:

nano /etc/nginx/sites-available/glance

Then stick the following configuration:

# 
# Reference: 

server {
    listen 80;
    listen [::]:80;
    server_name home.tutorial.mdinata.my.id;
    location / {
        proxy_pass 

        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_set_header Host $host;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }
}

Adjust home.tutorial.mdinata.my.id with your domain.

Activate the configuration with:

ln -sf /etc/nginx/sites-available/glance /etc/nginx/sites-enabled/glance

# 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 home.tutorial.mdinata.my.id

Change home.tutorial.mdinata.my.id with your domain.

Happy! Your current domain can be accessed via a safe connection https.

Access the glance dashboard

Glance can be accessed through your previous domain. Example: https://home.tutorial.mdinata.my.id.

Cover

Thus this article is about the steps to install glance in 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

Gaming Center