Jump to content
Get 20% off with our White Friday Deal🥳 ×

Whatsapp Gateway | Multi Device v8.5.1


Magd Almuntaser

Recommended Posts

2 hours ago, Enno The Explorer said:

karena itu Cronjob masih sangat dibutuhkan untuk menyadarkan Node.Js setiap saat krn sepertinya Node.js ini cepat sekali tertidur , bahkan bisa hibernasi klo ga di sadarkan dengan Cronjob 🤣 

sy pakai Node 16 , production dan untuk server.js versi 7.0.0.2

kalau teman2 yg lain gimana?

Pake send message tiap jam ya bro?

Link to comment
Share on other sites

52 minutes ago, Unicode said:

Pake send message tiap jam ya bro?

pakai cronjob utk send message om, sy pakai tiap 5 menit jg gpp, sesuai kebutuhan aja, ada juga yg 30 menit sekali..
Insya Allah ga akan di blokir klo nomor hp yg digunakan klo sudah pernah saling chat bbrp saat sebelumnya, jd ga dianggap SPAM oleh WA Officialnya.

 

  • Thanks 1
Link to comment
Share on other sites

13 minutes ago, Enno The Explorer said:

pakai cronjob utk send message om, sy pakai tiap 5 menit jg gpp, sesuai kebutuhan aja, ada juga yg 30 menit sekali..
Insya Allah ga akan di blokir klo nomor hp yg digunakan klo sudah pernah saling chat bbrp saat sebelumnya, jd ga dianggap SPAM oleh WA Officialnya.

 

Siap.

ini buat ngakali nomer baru aku taruh di grup nomernya haha, jadi Ainya auto ngobrol sendiri dia 😂

Link to comment
Share on other sites

10 minutes ago, Magd Almuntaser said:

It does not need to be inside the auto installer file. It is already there after installing the version in Admin->Settings Server and generate auto SSL..

no change script anything after generate sir?

Link to comment
Share on other sites

  • DW Members
4 minutes ago, Pebrian said:

no change script anything after generate sir?

Do you get a message that the generate failed?
Did you get a message that the generate was successful?

If it shows that the generate was successful, you have to restart nodejs and thus nodejs was run via SSL
All that remains is to run your site on https at the top of the browser..
Make sure that you already have https that you generated from aapanel or cpanel for your site link

Link to comment
Share on other sites

13 minutes ago, Magd Almuntaser said:

Do you get a message that the generate failed?
Did you get a message that the generate was successful?

If it shows that the generate was successful, you have to restart nodejs and thus nodejs was run via SSL
All that remains is to run your site on https at the top of the browser..
Make sure that you already have https that you generated from aapanel or cpanel for your site link

If I get SSL from sslforfree, is it possible?

Link to comment
Share on other sites

  • DW Members
2 minutes ago, Pebrian said:

not working after 2 hours instalation 😅

If you want me to install the version for you, you can contact me and send me your site information.. Then I will tell you where your problem was.. because I don't know what your problem is.

Link to comment
Share on other sites

@Magd Almuntaser bang, bisa ga ganti ke nama domain kita? dulu versi brp gitu, saya bisa ganti jadi nama apapun yang saya mau. tapi lupa versi brp. dan sekarang pake versi 7008 cuma bisa ganti nama browsernya aja. mohon petunjuk dan petuahnya wahai ksataria. terima kasih

 

image.thumb.png.9913aee49e9f027fc9d9f894d820bbb7.png

coffee

Need Help?? just buy me a cup of coffee

Link to comment
Share on other sites

On 7/11/2024 at 1:39 AM, Magd Almuntaser said:

How To Run (Whatsapp Gateway Multi Device) Via SSL
(For All Version)

((Cpanel+Cloudflare))

 

In this guide, we will use SSL for cPanel and Cloudflare users only.

1- we need to know that Cloudflare uses these ports exclusively:

443
2053
2083
2087
2096

8443
We will use port 8443 because it is not used by cPanel.

2-  let's assume the script is located at this domain:

https:// magd.com/ws

We will go to Cloudflare and select SSL/TLS -> Overview, then choose Full.

image.thumb.jpeg.27a536c007888bb9469fa03d971a8c28.jpeg

 

3- we will edit the .env file located in the root directory of the script and change these fields to https:// and Port to 8443
 

APP_URL=https://magd .com
WA_URL_SERVER=https://magd .com:8443
PORT_NODE=8443

4- we will login to cPanel, go to SSL/TLS:

image.jpeg.665b2a65a119f62217e5539beaa117ad.jpeg

and then Manage SSL sites:

image.jpeg.e34273c20eb386411ff6dcbe3176d844.jpeg

5- Now we will select Use Certificate for New Site:

image.jpeg.834449444e0a8b069fa6f4da36c9e5dd.jpeg

Two fields will appear. The first is Certificate: (CRT) which we will copy and save in a file named cert.pem. The other is Private Key (KEY) which we will save in a file named key.pem:

image.jpeg.087e3b6d551147b10f973ab1b7ec994b.jpeg

6- We will upload the two files we saved, cert.pem and key.pem, to the root directory of the script. Then, we will edit the server.js file and replace this code from:

/**
 * EXPRESS FOR ROUTING
 */
const express = require("express");
const app = express();
const http = require("http");
const server = http.createServer(app);

To:
 

/**
 * EXPRESS FOR ROUTING
 */
const serverOptions = {
  key: fs.readFileSync('key.pem'),
  cert: fs.readFileSync('cert.pem')
}

const express = require("express");
const app = express();
const https = require("https");
const server = https.createServer(serverOptions, app);

7- And finally, the last step, is to edit the routes/web.php file and add this code at the end of the file:
 

URL::forceScheme('https');

 

Now you can restart Node.js and enjoy using the script over HTTPS
I will later post how to use SSL on the aaPanel control panel. Therefore, if anyone has a website using this panel, please send your site details (PM) so I can use them for the explanation, as I don't currently have aaPanel 🙂

Bagaiman menggunakan di aapanel Debian 11 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...