vi /usr/local/caddy/Caddyfile
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install
相关Caddy命令
启动:/etc/init.d/caddy start
停止:/etc/init.d/caddy stop
重启:/etc/init.d/caddy restart
查看状态:/etc/init.d/caddy status
查看Caddy启动日志: tail -f /tmp/caddy.log
Caddy管理安装目录:/usr/local/caddy
Caddy配置文件位置:/usr/local/caddy/Caddyfile
https://v2stream.xyz:443
{
tls /home/shadowsocks-libev/conf/Nginx/1_v2stream.xyz_bundle.crt /home/shadowsocks-libev/conf/Nginx/2_v2stream.xyz.key
log /var/log/caddy.log
proxy / 127.0.0.1:10000 {
websocket
header_upstream -Origin
}
}
/etc/v2ray/config.json
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [{
"listen": "127.0.0.1",
"port": 10000,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxxxa90d-xxxx-xxxx-xxxx-xxxxxx33a48e",
"level": 1,
"alterId": 64
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/"
}
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
},{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}
]
}
}
bash <(curl -L -s https://install.direct/go.sh)