├── img ├── demo1.png ├── demo2.png ├── demo3.png ├── domain.png ├── newproject.png └── github-download.png ├── vercel.json ├── README_EN.md ├── README.md └── index.html /img/demo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/souying/vercel-api-proxy/HEAD/img/demo1.png -------------------------------------------------------------------------------- /img/demo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/souying/vercel-api-proxy/HEAD/img/demo2.png -------------------------------------------------------------------------------- /img/demo3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/souying/vercel-api-proxy/HEAD/img/demo3.png -------------------------------------------------------------------------------- /img/domain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/souying/vercel-api-proxy/HEAD/img/domain.png -------------------------------------------------------------------------------- /img/newproject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/souying/vercel-api-proxy/HEAD/img/newproject.png -------------------------------------------------------------------------------- /img/github-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/souying/vercel-api-proxy/HEAD/img/github-download.png -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "rewrites": [ 3 | { "source": "/https/:match/:url*", "destination": "https://:match/:url*" }, 4 | { "source": "/https/:match/:url*/", "destination": "https://:match/:url*/" }, 5 | { "source": "/http/:match/:url*", "destination": "http://:match/:url*" }, 6 | { "source": "/http/:match/:url*/", "destination": "http://:match/:url*/" }, 7 | { "source": "/wss/:match/:url*", "destination": "wss://:match/:url*" }, 8 | { "source": "/:protocol/:match/:url*", "destination": ":protocol://:match/:url*" }, 9 | { "source": "/:protocol/:match/:url*/", "destination": ":protocol://:match/:url*/" }, 10 | { "source": "/:protocol*/:match/:url*", "destination": ":protocol://:match/:url*" }, 11 | { "source": "/:protocol*/:match/:url*/", "destination": ":protocol://:match/:url*/" } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /README_EN.md: -------------------------------------------------------------------------------- 1 | # vercel-api-proxy 2 | [简体中文](./README.md) 3 | 4 | 5 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 6 | Telegram免费代理: 7 | 8 | 免费送高速代理规则: 9 | 每分享一个人使用代理,可增加自己使用时间5天 10 | 怎么算分享成功呢? 11 | 12 | 你只需要把高速代理链接复制分享给需要的人,他开启使用后,你的代理免费使用时间就会自动增5天 13 | 14 | tg://proxy?server=23.142.200.64&port=20020&secret=ee660371158145253e06e5355bf40f5e3c617a7572652e6d6963726f736f66742e636f6d 15 | 16 | tg://proxy?server=23.142.200.64&port=20021&secret=ee66c371858445a53e06e5355bf40f8e5b617a7572652e6d6963726f736f66742e636f6d 17 | 18 | tg://proxy?server=23.142.200.64&port=20022&secret=ee4111911bedcc4e6eab41dea7c22b3c2c617a7572652e6d6963726f736f66742e636f6d 19 | 20 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 21 | 22 | 23 | This project is a Vercel reverse proxy. It's completely free and an all-purpose proxy that can handle all interfaces on the internet, including OpenAI, GitHub, Google, and more. Both HTTP and HTTPS interfaces as well as single pages can be proxied and used in poor network environments. (When accessing the proxy page directly from a browser, some JS and CSS paths may not work correctly causing access issues and minor styling problems.) 24 | ## Deploy 25 | [![Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/souying/vercel-api-proxy) 26 | 27 | 28 | ## How to Use 29 | 1 Deployment. There are two methods for deployment: one is to directly click the button above for one-click deployment, and the other is to first fork this project and then log in [vercel](https://vercel.com/) to create new one. 30 | ![new project](img/newproject.png) 31 | 32 | 2 Bind your own domain name (not mandatory, you can also use Vercel's built-in subdomain, but the built-in domain vercel.app may not be accessible in poor network conditions in China). 33 | ![domain](img/domain.png) 34 | When binding a domain, simply follow the instructions on Vercel to configure it. Essentially, you are setting up a subdomain on your domain and pointing its CNAME record to the Vercel server. 35 | 3 To visit the https://yourdomain.com/https/url, or https://yourdomain.com/http/url. 36 | The mapping rule is to map /https/url to the https interface, and /http/url to the http interface. 37 | 38 | 39 | demo1: visit https://yourdomain.com/https/api.openai.com/v1/chat/completions 40 | Actually will be replaced with https://api.openai.com/v1/chat/completions 41 | 42 | demo2: visit https://yourdomain.com/https/raw.githubusercontent.com/souying/serverMmon 43 | Actually will be replaced with https://raw.githubusercontent.com/souying/serverMmon 44 | ![demo2](img/demo2.png) 45 | The mapping rule is to map /https/url to the https interface, and /http/url to the http interface. 46 | 47 | demo3: visit https://yourdomain.com/https/www.google.com/search?q=vercel-api-proxy 48 | Actually will be replaced with https://www.google.com/search?q=vercel-api-proxy 49 | ![demo3](img/demo3.png) 50 | Reverse proxy Google search results page. 51 | 52 | 53 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vercel-api-proxy 2 | [English README](./README_EN.md) 3 | 4 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 5 | Telegram免费代理: 6 | 7 | 免费送高速代理规则: 8 | 每分享一个人使用代理,可增加自己使用时间5天 9 | 怎么算分享成功呢? 10 | 11 | 你只需要把高速代理链接复制分享给需要的人,他开启使用后,你的代理免费使用时间就会自动增5天 12 | 13 | tg://proxy?server=23.142.200.64&port=20020&secret=ee660371158145253e06e5355bf40f5e3c617a7572652e6d6963726f736f66742e636f6d 14 | 15 | tg://proxy?server=23.142.200.64&port=20021&secret=ee66c371858445a53e06e5355bf40f8e5b617a7572652e6d6963726f736f66742e636f6d 16 | 17 | tg://proxy?server=23.142.200.64&port=20022&secret=ee4111911bedcc4e6eab41dea7c22b3c2c617a7572652e6d6963726f736f66742e636f6d 18 | 19 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 20 | 21 | 本项目是vercel反向代理。完全免费,万能代理,可代理全网一切接口,包括openai、Midjourney、github、google、Telegram等等。http和https接口、单页面均可代理,在网络环境不好的情况下均可用。(直接浏览器打开代理页面的情况下,由于某些js和css的路径可能会不对造成访问不到不会有大的影响。) 22 | 23 | (openai等接口服务大陆机器也可无需科学上网环境很稳定ip也稳定) 24 | 25 | (可强开QQ红域名) 26 | 27 | vercel现在每月有100GB的免费流量。 28 | 29 | This project is a Reverse proxy of vercel. Completely free, universal proxy, capable of representing all network interfaces, including openai, Midjournal, github, Google, Telegram, and more. Both HTTP and HTTPS interfaces, as well as single page proxies, are available in poor network environments. (In the case of directly opening the proxy page in the browser, the path of certain JS and CSS may not be correct, which will not have a significant impact on access.) 30 | 31 | (OpenAI and other interface services can also be provided to mainland machines without the need for scientific internet access. The environment is very stable and the IP is also stable.) 32 | 33 | (Can forcibly open QQ red domain names) 34 | 35 | Vercel now has 100GB of free traffic per month. 36 | 37 | ## 请您Star/Please Star 38 | 39 | 如果您觉得此工具不错,请轻轻点击此页面右上角**Star**按钮增加项目曝光度,谢谢!软件完全免费(商用除外),只求大家Star和宣传给其他需要的朋友,谢谢! 40 | 41 | If you think this tool is good, please gently click the **Star** button in the upper right corner at this page to increase the project exposure, thank you! The software is completely free (except for commercial use), only ask everyone to Star and promote it to other friends in need, thank you! 42 | 43 | ## 部署 44 | [![Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/souying/vercel-api-proxy) 45 | 46 | 47 | ## 使用方法 48 | 1 部署。部署有两种方法,一是直接点击上方按钮一键部署,二是可以先fork本项目,再登录[vercel](https://vercel.com/)网站新建 49 | ![新建项目](img/newproject.png) 50 | 51 | 2 绑定自己的域名(不是必须,使用vercel自带的子域名也可以,但是自带的域名vercel.app在国内网络环境不好的情况下不可用) 可以申请[tk免费域名](http://www.dot.tk/)或者薅小域名注册商首年免费羊毛 52 | ![绑定域名](img/domain.png) 53 | 绑定域名时按照vercel上的说明配置即可,其实就是在你的域名上配了一个子域名,cname到vercel服务器 54 | 55 | 3 访问 域名/https/url 或者/http/url即可。 56 | 映射规则为/https/url映射到https接口,/http/url映射到http接口 57 | 58 | ## 示例 59 | 例1 60 | 访问https://替换为你自己的域名/https/api.openai.com/v1/chat/completions 61 | 实际上会替换为https://api.openai.com/v1/chat/completions 62 | 63 | 如何在一些常见的开源项目中使用? 64 | 一般开源项目都是引用的openai的库,可以看到里面有一个属性是api_base = os.environ.get("OPENAI_API_BASE", "https://api.openai.com/v1") 65 | 66 | 所以使用的时候只需要设置一下openai.api_base="https://你的域名/https/api.openai.com/v1" 就可以了 67 | 68 | 例2 69 | 访问https://你的域名/https/github.com/souying/serverMmon/ 70 | 实际上会替换为https://github.com/souying/serverMmon/ 71 | ![demo2](img/demo2.png) 72 | 映射规则为/https/url映射到https接口,/http/url映射到http接口 73 | 74 | 也可用于github下载加速。假如原始链接是https://objects.githubusercontent.com/github-production-release-asset-2e65be/xxxxxx 75 | 改为https://替换为你自己的域名.com/https/objects.githubusercontent.com/github-production-release-asset-2e65be/xxxxxx 就可以加速了。下图是github原始链接和加速后对比。可以看到效果杠杠的,每秒50kb小水管变成了每秒2-3mb 76 | ![github-download](img/github-download.png) 77 | 78 | 例3 79 | 访问https://你的域名/https/www.google.com/search?q=vercel-api-proxy 80 | 实际上会替换为https://www.google.com/search?q=vercel-api-proxy 81 | ![demo3](img/demo3.png) 82 | 代理google搜索结果页面 83 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 【免费】 vercel反向代理 7 | 10 | 11 | 12 | 13 |
14 |
15 |
16 |
17 |

【免费】的Vercel反向代理

18 |
19 |
20 |
21 | 22 | Reverse Proxy 23 |
24 |
25 |
26 |
27 |
28 | 29 | 30 | 38 | 39 | 86 | 87 | --------------------------------------------------------------------------------