Skip to content

Commit

Permalink
update: readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowanlu committed Aug 5, 2023
1 parent d942ada commit eb72f90
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Vercel Website Proxy

声明:此项目仅供技术学习,不进行任何获利

## Quick start

Chinese Notice: 如果无法查看此文档中的图片,请下载次项目后在自己电脑查看此 README.md

1、Fork this repository
1、Fork this repository

2、rewrite target host name in api/proxy.js (default google.com)
2、Please rewrite the target host name in api/proxy.js to "google.com" by default.

```js
const { createProxyMiddleware } = require("http-proxy-middleware");

module.exports = (req, res) => {
let target = "https://www.google.com/";//your website url
let target = "https://www.google.com/"; //your website url
// if (
// req.url.startsWith("/api") ||
// req.url.startsWith("/auth") ||
Expand All @@ -32,44 +34,42 @@ module.exports = (req, res) => {
},
})(req, res);
};

```


3、Registering your vercel account [vercel](https://vercel.com/)
4、Binding your github account in vercel's settings.
4、To bind your GitHub account in Vercel's settings, please follow the steps below.

![bind github account](./asset/224318.jpg)

5、To config your vercel Rep.
5、To configure your Vercel repository, please follow the instructions below.

Import Git repository,steps: Overview=>Add New...=>Project.
To import a Git repository, follow these steps: Overview => Add New... => Project.

![import git repository](./asset/224748.jpg)

Click Button "Continue with Github".
Click the "Continue with GitHub" button.

![looking your own rep](./asset/225212.jpg)

To import your repository forked,such as google etc.
To import your forked repository, such as Google, please follow the steps below.

![Click Deploy](./asset/225542.jpg)

Waiting for deploy process
The deploy process is currently underway. Please wait for it to complete.

![Deploy success](./asset/225816.jpg)

The domain vercel for you

In 2022, the vercel domain name in mainland China will be polluted by DNS, so you should register a domain name in mainland China. Usually, novices on major domain name platforms can get a domain name with one-year usage rights for 1 yuan.
In 2022, the Vercel domain name in mainland China may experience DNS pollution, so it is advisable to register a domain name within mainland China. Typically, beginners on major domain name platforms can obtain a domain name with one-year usage rights for 1 RMB.

![Vercel Domain](./asset/230030.jpg)

6、Register your own domain name and perform real-name registration according to the real-name registration rules of the domain name manager
6、Register your own domain name and complete the real-name registration process in accordance with the real-name registration rules of the domain name registrar.

No more elaboration, if you encounter problems, you can submit an issue, and some netizens will answer your questions with each other.

7、To config your own domain and cname
7、To configure your own domain and cname

![](./asset/230712.jpg)
![](./asset/231001.jpg)
Expand Down Expand Up @@ -100,6 +100,14 @@ Setting the default item

![](./asset/232826.jpg)

## Chrome prompts that the website is not secure.

![](./asset/031826.jpg)

To disable Chrome security protection in Chrome browser settings.

![](./asset/032114.jpg)

## Change which data center your service is in

This affects your ip address when you use google search
Expand Down
Binary file added asset/031826.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asset/032114.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eb72f90

Please sign in to comment.