Natvps.id – Nowadays, Private branding becomes quite important for individuals and companies. One of them is use Profile page (Profile page), like linktree or milkshake. However, we can use a free alternative and open source named Linkstack which can beinstall On our server. Thus, the costs incurred can be cheaper.
In this article we will discuss the links to install the linkstack on NAT VPS, 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 domain linkstack.
For example, in this article will use a domain Links-tutorial.mdinata.my.id As a domain Profile page. 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 men-spread Linkstack.
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.
Spreading the linkstack
Create a new directory with a name linkstack
cd ~/ mkdir linkstack cd linkstack
Create a new file with a name docker-compose.yml
using nano:
apt install nano -y nano docker-compose.yaml
Then attach the following compose configuration:
# Docker Compose untuk deploy LinkStack di NAT VPS # # Source: (adapted) version: "3.8" services: linkstack: hostname: 'linkstack' image: 'linkstackorg/linkstack:latest' environment: TZ: 'Asia/Jakarta' SERVER_ADMIN: '[email protected]' HTTP_SERVER_NAME: 'link-tutorial.mdinata.my.id' HTTPS_SERVER_NAME: 'link-tutorial.mdinata.my.id' LOG_LEVEL: 'info' PHP_MEMORY_LIMIT: '256M' UPLOAD_MAX_FILESIZE: '8M' volumes: - 'linkstack_data:/htdocs' ports: - '8190:443' restart: unless-stopped volumes: linkstack_data:
In the section HTTP_SERVER_NAME
And HTTPS_SERVER_NAME
Adjust to your domain linkstack.
HTTP_SERVER_NAME: 'link-tutorial.mdinata.my.id' HTTPS_SERVER_NAME: 'link-tutorial.mdinata.my.id'
Don’t forget to change the email on SERVER_ADMIN
with your personal email.
SERVER_ADMIN: '[email protected]' # Ganti dengan Email Anda
Save the file by pressing Ctrl-X
, y
Then Enter
.
Finally, run the linkstacck using a compose docker:
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 Links-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 linkstack:
nano /etc/nginx/sites-available/linkstack
Then stick the following configuration:
# Konfigurasi NGINX untuk deploy LinkStack di NAT VPS # server { server_name link-tutorial.mdinata.my.id; listen 80; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_pass # Pastikan pakai HTTPS } }
Make sure to use https on
proxy_pass
Lai
Adjust link-tutorial.mdinata.my.id
with your domain linkstack.
Activate the configuration with:
ln -sf /etc/nginx/sites-available/linkstack /etc/nginx/sites-enabled/linkstack # 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 link-tutorial.mdinata.my.id
Change link-tutorial.mdinata.my.id
with your domain.
Happy! Your current domain can be accessed via a safe connection https.
Access linkstack
Linkstack can be accessed via your previous domain. Example: https://link-tutorial.mdinata.my.id.
Please make further configurations according to your wishes.
Cover
Thus this article regarding the steps of deploy linkstack 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