Giter VIP home page Giter VIP logo

google's Introduction

Vercel Website Proxy

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

Quick start

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

1、Fork this repository

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

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

module.exports = (req, res) => {
  let target = "https://www.google.com/"; //your website url
  //   if (
  //     req.url.startsWith("/api") ||
  //     req.url.startsWith("/auth") ||
  //     req.url.startsWith("/banner") ||
  //     req.url.startsWith("/CollegeTask")
  //   ) {
  //     target = "http://106.15.2.32:6969";
  //   }

  createProxyMiddleware({
    target,
    changeOrigin: true,
    pathRewrite: {
      // rewrite request path `/backend`
      //  /backend/user/login => http://google.com/user/login
      //   "^/backend/": "/",
    },
  })(req, res);
};

3、Registering your vercel account vercel
4、To bind your GitHub account in Vercel's settings, please follow the steps below.

bind github account

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

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

import git repository

Click the "Continue with GitHub" button.

looking your own rep

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

Click Deploy

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

Deploy success

The domain vercel for you

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

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 configure your own domain and cname

Manage your domain name

The TXT record needs to fill in the content provided by vercel above, and the cname is the same

8、Enjoy it

https://google.{{mydomain}}.com

9、Modify the default browser engine for your own service

Setting the default item

Chrome prompts that the website is not secure.

To disable Chrome security protection in Chrome browser settings.

Change which data center your service is in

This affects your ip address when you use google search

google's People

Contributors

gaowanlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

google's Issues

Opening links

Hello. I am wondering how I can make it so when i click on a link it opens the website inside of the proxy.

能不能通过vercel环境变量来更改反代网站

说一下改github文件来修改的弊端

  1. 一个账号只允许有一个这个仓库的分支,如果我想要反代好几个(比方说谷歌githubv2ex)需要把项目下载到本地,再上传,这会导致如果项目进行了更新,我无法快速同步更新
  2. 修改起来不如ve部署的时候容易

支持的好处

  1. ve允许一个github项目多次部署,部署的时候填个要反代域名的环境变量就行了
  2. 修改反代网站跟容易

因此希望开发者可以考虑下我的建议

vercel中绑定的域名无法访问

遇到的问题

image
使用vercel提供的域名可以科学xx访问,但绑定自己的域名却访问不了,不论是数据流量还是科学xx都访问不了。

508: INFINITE_LOOP

大佬,部署好以后也绑定了域名打开是这样的怎么解决?
屏幕截图 2023-05-04 210741

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.