Skip to content
📡 免费使用 now.sh 批量搭建谷歌、维基百科等镜像,只需一条命令。Deploy Google and Wikipedia mirror with one command using now.sh.
JavaScript
Branch: dev
Clone or download
Latest commit 14c89e9 Jun 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
template Finished: v0.0.2 Apr 4, 2019
.gitignore Finished: v0.0.2 Apr 4, 2019
LICENSE v0.0.2 Apr 6, 2019
README.md Changed: wiki -> w Jun 9, 2019
config.js Using js for comments Apr 6, 2019
index.js Changed: wiki -> w Jun 9, 2019
log.txt Finished: v0.0.2 Apr 4, 2019
package-lock.json Finished: v0.0.2 Apr 4, 2019
package.json Changed: wiki -> w Jun 9, 2019

README.md

upupming Mirror v0.0.2

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. Clone this repo and edit config.js for your proxying configuration.

    {
      "mirrors": [
        {
          // project name for now.sh
          "key": "google",
          "proxied": "https://www.google.com/",
          "proxying": "google.upupming.site"
        }
      ]
    }
  2. Install now cli and login.

  3. Properly configure your custom domain according to Aliasing a Deployment.

  4. Run npm i and then npm run deploy.

See the following log for example:

Sample log of upupming 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
You can’t perform that action at this time.