wap2: 5pJ/t/AJ&Hs8DZ
wap2 ipv4: 168.181.187.116
wap2 ipv6: 2800:6c0:5::2123



DOCKER:
======
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo usermod -aG docker $USER




CREAR IMAGENES DE DOCKER
========================

Copiar los archivos de las carpetas de bot-admin-api y txbot

- Dentro de la carpeta de txbot:
    docker build -t txbot .
- Dentro de la carpeta bot-admin-api
    docker build -t bot-admin-api .
    docker compose up -d

INSTALAR NGINX
==============

sudo apt update
sudo apt install -y nginx
sudo systemctl enable nginx
sudo systemctl start nginx
systemctl status nginx

cd /etc/nginx/sites-enabled
sudo rm -r default

cd /etc/nginx/sites-available
sudo rm -r default

nano wap1.turnosxpress.com.ar

server {
  server_name wap1.turnosxpress.com.ar;

  location / {
    proxy_pass http://localhost:3005;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
  }
}

cd /etc/nginx/sites-enabled/

ln -s /etc/nginx/sites-available/wap1.turnosxpress.com.ar wap1.turnosxpress.com.ar

nginx -t

service nginx restart
service nginx status

sudo apt install certbot python3-certbot-nginx -y

certbot --nginx -d wap1.turnosxpress.com.ar