Painel para gestão de dispositivos conectados na API do MYZAP, o software é de uso aberto e você pode alterar da forma que desejar, caso queira testar o painel sem instalar, basta entrar no link abaixo.
Afinal de contas o que esse painel faz? Ele foi desenvolvido para fazer a gestão dos seus dispositivos conectados a sua API do WhatsApp (MyZap) facilitando assim sua integração com demais ferramentas.
https://www.oracle.com/br/cloud/free/
https://apibrasil.com.br/
Ubuntu 20.04 Superior
1 GB / 1 vCPU
6GB HD
iptables -F
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -j DROP
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update && apt install -y nginx git software-properties-common unzip zip build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget mariadb-server php7.4 php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-cli php7.4-zip php7.4-bcmath php7.4-tokenizer php7.4-json php-pear php7.4-curl php7.4-intl php7.4-mysqli php7.4-fpm python3-certbot-nginx
cd /opt && git clone https://github.com/APIBrasil/apibrasil-whatsapp.git painel-whatsapp
nano /etc/php/7.4/fpm/pool.d/www.conf
listen = 127.0.0.1:9000
mariadb -u root -p
CREATE DATABASE apibrasil;
USE mysql;
UPDATE user SET PLUGIN='' WHERE User='root';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '_SeT_On3_B1g_STR0NG_P@ssw0rd_';
FLUSH PRIVILEGES;
EXIT;
cd /opt/painel-whatsapp
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
php composer.phar install
cp .env_example .env
nano .env
service mysql restart
service php7.4-fpm restart
service php7.4-fpm status
sudo systemctl enable nginx
sudo systemctl enable mysql.service
crontab -e
* * * * * cd /opt/painel-whatsapp && php7.4 artisan schedule:run >> /dev/null 2>&1
php artisan migrate
php artisan db:seed
chmod 777 storage/app
chmod 777 -R storage/framework
chmod 777 -R storage/logs
php artisan queue:work &
jobs -l
nano /etc/nginx/sites-available/painel
server {
root /opt/painel-whatsapp/public;
index index.php index.html index.htm;
server_name SEU_DOMINIO.COM;
location / {
try_files $uri $uri/ /index.php?$query_string;
resolver 8.8.8.8 ipv6=off;
}
location ~ \.php$ {
try_files $uri $uri/ /index.php?$query_string;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
listen 80;
}
ln -s /etc/nginx/sites-available/painel /etc/nginx/sites-enabled/painel
certbot --nginx
Usuário padrão de acesso a plataforma
acesso@whatsapp.com
1234