https://github.com/amiremohamadi/tunl
serverless v2ray tunnel
https://github.com/amiremohamadi/tunl
cloudflare-workers serverless v2ray
Last synced: 5 months ago
JSON representation
serverless v2ray tunnel
- Host: GitHub
- URL: https://github.com/amiremohamadi/tunl
- Owner: amiremohamadi
- Created: 2024-05-14T14:40:58.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T12:12:18.000Z (over 1 year ago)
- Last Synced: 2025-02-07T20:05:58.318Z (about 1 year ago)
- Topics: cloudflare-workers, serverless, v2ray
- Language: Rust
- Homepage:
- Size: 53.7 KB
- Stars: 31
- Watchers: 1
- Forks: 49
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tunl
a serverless v2ray tunnel
## Deploy
### Easy Deploy (recommended)
click on the button below:
[](https://deploy.workers.cloudflare.com/?url=https://github.com/amiremohamadi/tunl)
and visit https://{YOUR-WORKERS-SUBDOMAIN}.workers.dev/link to get the config links.
### Manually
1. [Create an API token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) from the cloudflare dashboard.
2. Create a `.env` file based on `.env.example` and fill the values based on your tokens
| Variable | Description |
|---------------------|--------------------------------------------------|
| CLOUDFLARE_API_TOKEN | The API key retrieved from Cloudflare dashboard |
3. Deploy
```sh
$ make deploy
```
4. Modify the [xray config](./config/vmess.json) and run:
```sh
$ xray -c ./config/xray.json
```