Important
We thank MagicMizban for supporting and sponsoring this project.
Show Server Commands
sudo apt update && sudo apt upgrade -y
curl -fsSL https://get.docker.com | sh
Show Run Commands
mkdir -p /opt/erfjab/liteguard/data
curl -o /opt/erfjab/liteguard/docker-compose.yml https://raw.githubusercontent.com/erfjab/liteguard/master/docker-compose.yml
cd /opt/erfjab/liteguard
curl -o .env https://raw.githubusercontent.com/erfjab/liteguard/master/.env.example
Before configuring the environment, you need to set up SSL certificates for your domain. The SSL files must be placed in the /opt/erfjab/liteguard/data
directory.
For obtaining SSL certificates, you can use the ESSL repository which provides automated SSL certificate generation.
Important: Make sure port 443 is open and available on your server, as the project requires it. If port 443 is occupied by another service (like Nginx or HAProxy), you'll need to configure those services to work alongside LiteGuard or use a different configuration.
nano .env
docker compose pull
docker compose up -d
After a few moments, the bot will start running.
Show Update Commands
Make sure you're in the liteguard directory:
cd /opt/erfjab/liteguard
Then update the bot:
docker compose pull && docker compose up -d
Show Manage Commands
Make sure you're in the liteguard directory:
cd /opt/erfjab/liteguard
-
Restart the Bot:
docker compose restart
-
Stop the Bot:
docker compose down
-
View Logs:
docker compose logs -f
Show GA Commands
Make sure you're in the HolderBot directory:
cd /opt/erfjab/liteguard
-
Open the Docker Compose File:
nano docker-compose.yml
-
Change the Image Tag:
From:
erfjab/liteguard:latest
To:
erfjab/liteguard:ga
-
Pull the Docker Image:
docker compose pull
-
Start the Bot:
docker compose up -d
- Telegram Channel: @ErfJabs
- Telegram Chat: @ErfJabChat