How to Install Gowhatsapp on Nat VPS


Natvps.idGowhatsapp is WhatsApp API not official made by an Indonesian developer named Aldino Kemal. Similar to Waha, Gowhatsapp is an alternative to WhatsApp API.

This article discusses the steps to install Gowhatsapp 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.

Important: This API is an unofficial service originating from the community, and moreover uses methods that are actually prohibited by WhatsApp developers. This post is only intended as learning, and Natvps.id is not responsible for all the risks experienced by the reader. Please use this fire carefully

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 Gowhatsapp domain.

For example, in this article will use a domain gowa.tutorial.mdinata.my.id To access Gowhatsapp. 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 Gowhatsapp.

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 Gowhatsapp

Gowhatsapp provides a compose docker configuration that is ready to be used in its repositories, so we don’t need to create configuration files docker-compose.yml from the beginning.

Install git (if not) and clone Gowhatsapp Repository:

apt install git -y # jika belum
git clone 
cd go-whatsapp-web-multidevice

Copy Examples of Environmental Configuration for Use:

cp src/.env.example src/.env

To adjust the configuration, open the Environment configuration file

apt install nano -y # Jika belum
nano src/.env

Some configurations that are often changed:

  • App_basic_auth: Username & Password to Login to the Gowhatsapp Dashboard. Format: User Name: PasswordAn example Admin: Admin123
  • Whatsapp_webhook: webhook url, if you want to make a kind of whatsapp bot or Auto-reply based Webhook (optional)
  • Whatsapp_webhook_secret: Password for your webhook, for security (optional)

The rest do not need to be changed, but you remain free to change it as you wish.

If so, run Gowhatsapp:

docker compose up -d

Wait until the process spread finished. Deploy can first take a few minutes because of having to do build from the beginning.

Nginx Configuration (Reverse Proxy)

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

nano /etc/nginx/sites-available/gowa

Then stick the following configuration:

# Konfigurasi NGINX untuk deploy GoWhatsapp di NAT VPS
# 

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

    location / {
        proxy_pass 
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
        proxy_set_header Origin $scheme://$http_host;
        proxy_cache off;
        proxy_buffering off;
    }
}

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

Activate the configuration with:

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

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

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

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

Accessing the Gowhatsapp dashboard

Gowhatsapp dashboard can be accessed through your previous domain. Example: https://gowa.tutorial.mdinata.my.id.

Cover

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

Gaming Center