Skip to content

Just for Fun to practice shell script and ansible automation

Notifications You must be signed in to change notification settings

ypo777/x-ui-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts for Installation v2ray VPN

Docker Based on https://github.com/thesadboy/x-ui-docker

V2ray Setup Based on https://privacymelon.com/how-to-setup-v2ray-ws-tls-cdn/

Requirements

Table of Contents

  1. Getting Started
  2. Ubuntu
  3. Docker Image
  4. Getting SSL
  5. Admin Panel Configuration
  6. Client Devices
  • 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
Android
iOS
Windows & MacOS
TODO
  • Add Timezone Selection

About

Just for Fun to practice shell script and ansible automation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published