ioioioion cb1e0268e5 update image version | 3 年之前 | |
---|---|---|
.github | 4 年之前 | |
appdata | 4 年之前 | |
README.md | 4 年之前 | |
config.json.template | 4 年之前 | |
docker-compose.yml.template | 3 年之前 | |
start.sh | 4 年之前 | |
traffic.sh | 4 年之前 | |
trojan.config.json.template | 4 年之前 | |
v2ray.subdomain.conf.template | 4 年之前 |
Automation powered by github action.
ubuntu 18.04 is recommended.
sudo curl -fsSL https://get.docker.com | sh
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -aG docker $USER
Logout and login again.
sudo su
echo "net.ipv4.tcp_fastopen=3" > /etc/sysctl.d/98-tcp-fastopen.conf
RAND=$(openssl rand -hex 16)
NEWKEY=${RAND:0:8}-${RAND:8:8}-${RAND:16:8}-${RAND:24:8}
echo "net.ipv4.tcp_fastopen_key=$NEWKEY" > /etc/sysctl.d/98-tcp_fastopen_key.conf
sysctl --system
unset RAND NEWKEY
exit
export DOMAIN=mydomainname.com
export V2RAY_PATH=yourV2rayPath #get one by `uuidgen`
export UUID=myUuidForV2ray #get one by `uuidgen`
export TROJAN_PASSWORD=yourTrojanPassword
Make sure 80, 81 and 443 port is not occupied and available to the internet.
git clone https://github.com/ioioioion/vps-init.git
cd vps-init
bash start.sh
Check .github/workflows/deploy.yml