just need you to run this command
bash -c "$(curl -L https://raw.githubusercontent.com/Freeongoo/xray-reality/master/install.sh)"
and it will do the rest for you.
bash -c "$(curl -L https://raw.githubusercontent.com/Freeongoo/xray-reality/master/uninstall.sh)"
- install docker
curl -fsSL https://get.docker.com | sh
- clone this project
git clone https://github.com/Freeongoo/xray-reality && cd xray-reality
- build docker image
docker build -t xrayreality .
- run
docker run -d --name xrayreality -p443:443 xrayreality
- get connection config :
get url
docker exec -it xrayreality cat /root/test.url
view qrcode
docker exec -it xrayreality sh -c 'qrencode -s 120 -t ANSIUTF8 $(cat /root/test.url)'
status :
docker ps -a | grep xrayreality
stop :
docker stop xrayreality
connect :
docker exec -it xrayreality bash
start :
docker start xrayreality
remove :
docker rm -f xrayreality
remove image :
docker image rm xrayreality
- I have only tested it on Ubuntu 22 and wrote it for that system. Although I have the time and willingness to write it for other systems, I don't think I will need to do so unless I am forced to.
- I used ChatGPT to translate my words. Please pardon any mistakes in the translation.
- Add menu
- test it on other OS and modify the script for them