An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# tunl
a serverless v2ray tunnel

## Deploy

### Easy Deploy (recommended)
click on the button below:

[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](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
```