Docker Based on https://github.com/thesadboy/x-ui-docker
V2ray Setup Based on https://privacymelon.com/how-to-setup-v2ray-ws-tls-cdn/
- Domain Name
- VPS
- CloudFlare Account For DNS Service
- Point Your NameServers to CloudFlare
- Point Your VPS IP to Your Domain Name
Using Bash Script:
bash <(curl -s https://raw.githubusercontent.com/ypo777/x-ui-panel/main/Bash/v2ray_setup.sh )
Using Ansible:
- add your IP Address, Username And SSH Keys in Inventory
ansible-playbook v2raysetup.yaml
- Pull docker image
docker pull ypo007/x-ui
- Create a container
docker run --restart=always --name x-ui -d -p 54321:54321 -p 8000-8010:8000-8010/tcp -p 8000-8010:8000-8010/udp --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /etc/x-ui:/etc/x-ui ypo007/x-ui
sudo certbot certonly --standalone --preferred-challenges http --agree-tos --email your-email-address -d test.example.com
- Copy Paths of Certificate file and Key file
- Default Port for v2-ui panel : http://YOURIP:54321
- Admin User & Password: both "admin"
- Add a new user:
- Go to Inbound List
- Click
+
button - Enter your desired name in
remark
- Select
protocol: vmess
- Listen IP
yourIP
- Port :
your desired port
- Transmission:
ws
- Open TLS Option
- Enter your domain name
- Add Certificated you got from SSL Certificate
- If you don't need , close
sniffing
option
- Add Timezone Selection