How to Install Gospeed Web Downloader on NAT VPS

NATVPS.idgopeed (Go Speed) is a modern downloader application in nature open source which supports various protocols, such as HTTP, BitTorrent, and Magnet. Gospeed supports a variety of platforms and can be a replacement Aria2 + AriaNg.

This article discusses the steps for installing Gopeed server on a NAT VPS using Docker Compose, along with 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.

Port Forwarding Configuration

Considering we are using NAT, we need to add 2 port forwarding configurations on the Virtualizor panel (or other VPS panel according to provider), ie HTTP and HTTPS port forwarding for Gospeed domains.

For example, this article will use domains dl.tutorial.mdinata.my.id to access Gospeed. You are free to change the domain according to your choice. Note this domain, because we will use it again in the installation process.

Don’t forget to add a DNS record that goes to your VPS’ NAT public IP, like this:

If you are confused, please read our article regarding domain forwarding here: Explanation of Domain Forwarding in NAT VPS.

Install Docker

We will use Docker and Docker Compose for spread gopeed.

First, Install curly using the command:

apt update && apt install curl -y

Then, run it script automatic installation of Docker by entering:

curl -fsSL get.docker.com | sh

Wait until the installation process is complete.

Install Gospeed

First, create a new directory for Gopeed:

mkdir /opt/gopeed
cd /opt/gopeed

Then, create a Docker Compose file:

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

Fill in the following configuration:

name: gopeed
services:
    gopeed:
      image: liwei2633/gopeed
      container_name: gopeed
      volumes:
        - ./download:/app/Downloads
        - ./storage:/app/storage
      ports:
        - 9999:9999
      env_file:
        - .env

Save the file with Ctrl-X, yThen Enter.

Create file .env for Gospeed username & password with command:

nano docker-compose.yml

Then fill it in with:

GOPEED_USERNAME=user
GOPEED_PASSWORD=password

Change user And password according to your wishes.

Finally, run Gospeed:

docker compose up -d

Wait for the process spread finished. The first deployment may take a few minutes.

NGINX (Reverse Proxy) Configuration

So that we can access URLs with an HTTPS connection via domains such as https://dl.tutorial.mdinata.my.idwe can use reverse proxy like NGINX.

First, install NGINX via 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 Gopeed:

nano /etc/nginx/sites-available/gopeed

Then paste the following configuration:

# 

server {
    listen 80;
    server_name dl.tutorial.mdinata.my.id;

    location / {
        proxy_pass 
        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;
    }
}

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

Activate the configuration by:

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

# Restart NGINX
systemctl restart nginx

Generate SSL Certificate (Let’s Encrypt)

In order for our domain to be accessible via HTTPS, we need to create an SSL certificate. We can use a free SSL certificate from Let’s Encrypt via Certbot.

Install Certbot and its NGINX plugin use the command:

apt install python3-certbot python3-certbot-nginx

So, produce certificate via Certbot with command

certbot --nginx -d dl.tutorial.mdinata.my.id

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

Gopeed can currently be accessed via a secure HTTPS connection.

Accessing Gospeed

Gospeed can be accessed via your previous domain. Example: https://dl.tutorial.mdinata.my.id.

Login using the username & password that was previously set.

Gospeed has finished installing. Happy!

Cover

That’s it for this article about the steps to install Gopeed on a NAT VPS.

If you are confused or in doubt, don’t hesitate to ask in the Telegram group @IPv6Indonesia. Thank You!

News
Berita Teknologi
Berita Olahraga
Sports news
sports
Motivation
football prediction
technology
Berita Technologi
Berita Terkini
Tempat Wisata
News Flash
Football
Gaming
Game News
Gamers
Jasa Artikel
Jasa Backlink
Agen234
Agen234
Agen234
Resep
Download Film

Gaming center adalah sebuah tempat atau fasilitas yang menyediakan berbagai perangkat dan layanan untuk bermain video game, baik di PC, konsol, maupun mesin arcade. Gaming center ini bisa dikunjungi oleh siapa saja yang ingin bermain game secara individu atau bersama teman-teman. Beberapa gaming center juga sering digunakan sebagai lokasi turnamen game atau esports.