Skip to content

代理网站一键部署。实测支持访问google系列(包括youtube)、维基百科等, 它是直接使用 now.sh 提供的服务,通过脚本批量代理可以代理很多子域名

License

cjh0613/Mirror

Repository files navigation

Mirror v0.0.2

代理网站一键部署。实测支持访问google系列(包括youtube)、维基百科等,就是服务器在境外,网速不甚令人满意,且无法加载Google搜索流量异常验证码。 它是直接使用 now.sh 提供的服务(无需自建服务器,是【免费】的)来托管一个 Koa 服务端,这个服务端可以实现对单个域名的反向代理,通过脚本批量代理可以代理很多子域名。

原作者https://github.com/upupming/Mirror

Note: if you have a server and want to implement something like subs_filter (eg. replace all google.com to google.upupming.site in web pages.), please consider using v0.0.1. v0.0.1 can also proxy all subdomains of Google, it will be useful if you are a heavy Google user.

Using now.sh to proxy mirror websites for Google and Chinese Wikipedia, keeping to organize the world's information and make it universally accessible and useful in mind.

How to use

  1. Install node.js,clone this repo (git clone -b dev https://github.com/cjh0613/Mirror.git)and edit config.js for your proxying configuration.

    {
      "mirrors": [ // an array which configures all websites you want to proxy
        {
          // project name for now.sh
          "key": "google",
          "proxied": "https://www.google.com/",
          // If you don't need custom domain,
          // simply leave `proxying` empty or commented
          "proxying": "google.upupming.site"
        }
      ]
    }
  2. Install now cli and login.

Run npm i -g now and then now login [now.email]

  1. [Optional] Properly configure your custom domain according to Aliasing a Deployment. (Only if you need a custom domain.)
  2. Run npm i and then npm run deploy.

手动进入各文件夹上传(已修复)

See the following log for example:

Sample log of Mirror
Making mirror google
Making mirror wiki
Making mirror mwiki
Folder wiki created
Folder wiki configured
Deploying wiki to now
now.sh: 
> Deploying D:\github\mirror\wiki under upupming
> Using project wiki
> Ready! Aliases assigned [2s]
- https://wiki.upupming.site
- https://wiki.upupming.now.sh

now.sh: 
https://wiki-k5m0g45nr.now.sh
Folder google created
Folder google configured
Deploying google to now
now.sh: 
> Deploying D:\github\mirror\google under upupming
> Using project google
> Ready! Aliases assigned [2s]
- https://google.upupming.site
- https://google.upupming.now.sh

now.sh: 
https://google-hnostj6ze.now.sh
Folder mwiki created
Folder mwiki configured
Deploying mwiki to now
now.sh: 
> Deploying D:\github\mirror\mwiki under upupming
> Using project mwiki
> Ready! Aliases assigned [2s]
- https://mwiki.upupming.site
- https://mwiki.upupming.now.sh

now.sh: 
https://mwiki-agtv54c4l.now.sh
D:\github\mirror\wiki cleaned up
D:\github\mirror\google cleaned up
D:\github\mirror\mwiki cleaned up

About

代理网站一键部署。实测支持访问google系列(包括youtube)、维基百科等, 它是直接使用 now.sh 提供的服务,通过脚本批量代理可以代理很多子域名

Resources

License

Stars

Watchers

Forks

Packages

No packages published