A simple solution, combining caddy and v2ray, for anti-censorship.
- Snap installed
- A server or vps with 80 and 443 port open (only 443 port required if use DNS Challenge)
- A public domain name with correct A or AAAA record
- Easy to use
- Always up to date
- Low maintenance
Thanks to snap's automatic update feature, users consistently have access to the latest caddy & v2ray version without the need for frequent manual updates from the server.This ensuring users have access to the latest features and bug fixes.
The default stack is tls + vmess + ws,you can change it on your own. See config file location
below.
+----------------------+
| Client |
+----------------------+
|
| HTTPS
|
+----------------------+
| Caddy |
| (Reverse Proxy) |
+----------------------+
|
| Vmess/WebSocket
|
+----------------------+
| V2Ray |
| (Proxy Server) |
+----------------------+
|
| Internet
$ sudo snap install xrosswall
$ sudo xrosswall init
$ xrosswall --help
When you have made changes to the configuration file, you need to manually restart the service.
# show service status
$ sudo snap services xrosswall
# start/stop/restart all services
$ sudo snap start/stop/restart xrosswall
# or manipulate single service
$ sudo snap start/stop/restart xrosswall.caddy
$ sudo snap logs xorsswall.caddy
$SNAP_DATA
->/var/snap/xrosswall/current
- Caddyfile
- config.json