Skip to content

Instantly share code, notes, and snippets.

@Nader-abdi
Last active November 23, 2022 07:46
Show Gist options
  • Save Nader-abdi/9639c34a906a7551fbdf7410cf26e6e3 to your computer and use it in GitHub Desktop.
Save Nader-abdi/9639c34a906a7551fbdf7410cf26e6e3 to your computer and use it in GitHub Desktop.
Xray-auto-installer
#!/usr/bin/env bash
##install Xray perfromance setting
curl -O https://gist.githubusercontent.com/Nader-abdi/029532410f537ee499dc7fc3835bfccb/raw/80399d10539d95e30b0e6eed54528d99221124ef/Xray-performance-up.sh && chmod +x Xray-performance-up.sh && ./Xray-performance-up.sh
##install docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
rm get-docker.sh
##install git
apt update && apt install git -y
ssh-keygen
cat ~/.ssh/id_rsa.pub
read -p "Press any key to continue... " -n1 -s
git clone git@github.com:inboofficial/v2rayNginx.git
cd v2rayNginx
git clone https://github.com/Nader-abdi/x-ui.git
cd x-ui
git checkout feature/ngx
cd ..
docker compose build
docker compose up -d
docker exec -it v2raynginx-nginx-1 addvhost.sh
docker exec -it v2raynginx-nginx-1 nginx -s reload
echo 'Mank!!!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment