Code Monkey home page Code Monkey logo

mirror's Introduction

Archived due to the Fair Use Policy of vercel.

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": [ // 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.

    npm i -g now
  3. [Optional] Properly configure your custom domain according to Aliasing a Deployment. (Only if you need a custom domain.)

  4. 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

mirror's People

Contributors

cjh0613 avatar dependabot[bot] avatar upupming 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mirror's Issues

无自定义域名如何部署

C:\Users\Administrator>cd D:\nodejs\Mirror-dev\Mirror-dev

C:\Users\Administrator>d:

D:\nodejs\Mirror-dev\Mirror-dev>npm i
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)

audited 2287 packages in 7.389s
found 0 vulnerabilities


D:\nodejs\Mirror-dev\Mirror-dev>npm run deploy

> [email protected] deploy D:\nodejs\Mirror-dev\Mirror-dev
> node index.js

Making mirror google
Making mirror scholar.google
Making mirror maps.google
Making mirror translate.google
Making mirror docs.google
Making mirror drive.google
Making mirror code.google
Making mirror wiki
Making mirror mwiki
Folder google created
Folder google configured
Deploying google to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\google under kejiguan
> Using project google
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder maps.google created
Folder maps.google configured
Deploying maps.google to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\maps.google under kejiguan
> Using project maps.google
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder translate.google created
Folder translate.google configured
Deploying translate.google to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\translate.google under kejiguan
> Using project translate.google
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder wiki created
Folder wiki configured
Deploying wiki to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\wiki under kejiguan
> Using project wiki
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder drive.google created
Folder drive.google configured
Deploying drive.google to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\drive.google under kejiguan
> Using project drive.google
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder mwiki created
Folder mwiki configured
Deploying mwiki to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\mwiki under kejiguan
> Using project mwiki
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder scholar.google created
Folder scholar.google configured
Deploying scholar.google to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\scholar.google under kejiguan
> Using project scholar.google
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder code.google created
Folder code.google configured
Deploying code.google to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\code.google under kejiguan
> Using project code.google
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

Folder docs.google created
Folder docs.google configured
Deploying docs.google to now
now.sh:
> Deploying D:\nodejs\Mirror-dev\Mirror-dev\docs.google under kejiguan
> Using project docs.google
> WARN! We recommend using the much shorter `--prod` option instead of `--target
 production` (deprecated)
> Error! You are not owner of the domain "upupming.site"

now.sh:

D:\nodejs\Mirror-dev\Mirror-dev\maps.google cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\google cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\translate.google cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\wiki cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\drive.google cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\mwiki cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\scholar.google cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\code.google cleaned up
D:\nodejs\Mirror-dev\Mirror-dev\docs.google cleaned up

D:\nodejs\Mirror-dev\Mirror-dev>

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.