Hi, thanks a million for this, I have been using the wowonder script for a while and just found out that the node js actually makes the message system work fast, but sadly I am not sure how to proceed, because the hot-to guide seems like I have to start all over again with the installation, and I definitely do not want to lose my website. So I would really appreciate your note or guide on what to do here.
Here are the instructions but I haven't figured it out yet either
NODEJS : for who has problem with nodejs and SSL cetificates :
- after follow the official wowonder guide to install nodejs follow this - assuming your site running on HTTPS with ( let’encrytp sll certbot)
—- STOP FEREVER PROCESS - 1) running on terminal : sudo forever stopall
—-ENABLE NODEJS IN ADMIN PANEL 2) in admin panel enabled nodejs and enable ssl on port 449
3) path to keys :
/etc/letsencrypt/live/mydomain.com/privkey.pem
/etc/letsencrypt/live/mydomain.com/cert.pem
4) save
— RESTART FOREVER AND NODE APP
5) back to terminal and run :
cd /var/www/yourdomain.com/
cd ./nodejs && forever start ./main.js
—-—--IF YOUR NOT RUNNING LET’S ENCRYPT YOU CAN GENERATE A SELF SIGNED CERTIFICATE WTH OPENSSL --—-—-—-——-
From Terminal
1) cd /var/www/yourdomain.com
——CREATE SSL FOLDER
2) sudo mkdir SSL
—- GRANT PERMISSION TO SSL
3) sudo chown -R www-data:www-data SSL ( if runnn on apache ) 4) sudo chmod -R 775 SSL
—- GENERATE KEY WITH OPEN SSL
1) openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
New path to key to put in admin panel will be :
/var/www/mydomain.com/SSL/key.pem
/var/www/mydomain.com/SSL/cert.pem
Every modification and operation always remember :
—- STOP FEREVER PROCESS - 1) running on terminal : sudo forever stopall
— RESTART FOREVER AND NODE APP
5) back to terminal and run :
cd /var/www/yourdomain.com/
cd ./nodejs && forever start ./main.js
Good Luck