https://github.com/upupming/mirror
Deploy Google and Wikipedia mirror with one command using now.sh.
https://github.com/upupming/mirror
certificate gfw http-proxy mirror nginx-configuration ssl-certificate
Last synced: 2 months ago
JSON representation
Deploy Google and Wikipedia mirror with one command using now.sh.
- Host: GitHub
- URL: https://github.com/upupming/mirror
- Owner: upupming
- License: mit
- Created: 2018-05-10T10:29:46.000Z (about 7 years ago)
- Default Branch: dev
- Last Pushed: 2023-06-12T05:26:34.000Z (about 2 years ago)
- Last Synced: 2025-03-18T15:45:53.460Z (3 months ago)
- Topics: certificate, gfw, http-proxy, mirror, nginx-configuration, ssl-certificate
- Language: JavaScript
- Homepage: https://mirror.upupming.site
- Size: 95.4 MB
- Stars: 101
- Watchers: 5
- Forks: 32
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Archived due to the [Fair Use Policy](https://vercel.com/docs/platform/fair-use-policy) of vercel.
# Mirror v0.0.2
> Note: if you have a server and want to implement something like [subs_filter](https://www.nginx.com/resources/wiki/modules/substitutions/) (eg. replace all `google.com` to `google.upupming.site` in web pages.), please consider using [v0.0.1](https://github.com/upupming/Mirror/tree/master). v0.0.1 can also proxy all subdomains of Google, it will be useful if you are a heavy Google user.
Using [now.sh](https://zeit.co/) 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.
- [Google Search][1]
- AMP is too difficult to support. If you see an AMP page, please request desktop site.
- [Google Scholar][2]
- [Google Maps][3]
- [Google Translate][4]
- [Google Docs][5]
- [Google Drive](https://drive.google.upupming.site/)
- [Google Codejam][8]
- Chinese Wikipedia
- [Chinese Wikipedia Desktop][7]
- [Chinese Wikipedia Mobile][6][1]: https://google.upupming.site/
[2]: https://scholar.google.upupming.site/
[3]: https://maps.google.upupming.site
[4]: https://translate.google.upupming.site/
[5]: https://docs.google.upupming.site
[6]: https://mw.upupming.site
[7]: https://w.upupming.site
[8]: https://code.google.upupming.site/codejam/## How to use
1. Clone this repo and edit [config.js](config.js) for your proxying configuration.
```js
{
"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](https://zeit.co/download#now-cli) and login.
```bash
npm i -g now
```3. [Optional] Properly configure your custom domain according to [Aliasing a Deployment](https://zeit.co/docs/v2/domains-and-aliases/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
```txt
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.shnow.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.shnow.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.shnow.sh:
https://mwiki-agtv54c4l.now.sh
D:\github\mirror\wiki cleaned up
D:\github\mirror\google cleaned up
D:\github\mirror\mwiki cleaned up
```