C A R R E G A N D O

Buscar Vídeos

Instalando Chatwoot + EvoluitionApi para multi atendimento + Ubuntu 22

Fala Galera Beleza? 

Hoje trago para vocês um vídeo muito especial. Instalando e Configurando o Chatwoot + EvolutionApi para multi atendimentos. 

Espero que gostem do vídeo, curtem e se inscreva para que o canal possa crescer e ter muito mais conteúdos gratuitos. 

Links Uteis: 

https://github.com/chatwoot/chatwoot 

https://www.hetzner.com/cloud 

https://www.putty.org/ 

Evolution API Link do git: https://github.com/EvolutionAPI/evolution-api.git 

Abaixo vou deixar todos os comandos usados para a instalação. 

Instalação Chatwoot Atualizada

sudo apt update && apt upgrade -y Reiniciar a maquina: reboot wget https://get.chatwoot.app/linux/install.sh chmod +x install.sh ./install.sh --install

Instalação da Evolution

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt-get install -y nodejs npm install -g npm@latest --force npm install -g pm2@latest apt-get install -y git zip unzip nload snapd curl wget sudo sudo timedatectl set-timezone America/Sao_Paulo apt update && apt -y upgrade git clone https://github.com/EvolutionAPI/evolution-api.git cd evolution-api renomear arquivo env alterar localhost por URL: https://api.seudominio.com.br npm install alterar o arquivo src/whatsapp/services/chatwoot.service.ts Linha: 214 coloque o nome do contato que será criado npm run start:prod pm2 start 'npm run start:prod' --name ApiEvolution pm2 startup pm2 save --force Instalar SSL snap install --classic certbot rm /etc/nginx/sites-enabled/default nano /etc/nginx/conf.d/default.conf

server { listen 80; listen [::]:80; server_name _; root /var/www/html/; index index.php index.html index.htm index.nginx-debian.html; location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { fastcgi_pass unix:/run/php/php7.4-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; include snippets/fastcgi-php.conf; } # A long browser cache lifetime can speed up repeat visits to your page location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ { access_log off; log_not_found off; expires 360d; } # disable access to hidden files location ~ /\.ht { access_log off; log_not_found off; deny all; } }

nginx -t systemctl reload 

nginx chown www-data:www-data /usr/share/nginx/html -R 

nano /etc/nginx/sites-available/api

server { server_name api.cursodev.shop; location / { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_cache_bypass $http_upgrade; } }

ln -s /etc/nginx/sites-available/api /etc/nginx/sites-enabled 

nginx -t systemctl reload 

nginx certbot --nginx 

Link do Manager https://app.appsmith.com/app/manager-provida/home-65242f865012274cbc51568c?embed=true