Build a Google Mirror Site Using Docker
Due to a new environment where the router does not support installing Shadowsocks or V2Ray, accessing Google to search vast technical content in English is not possible. Here, we use the official Google mirror container to build a Google mirror site and map it to our existing domain.
Requirements:
- A VPS such as Vultr, etc.
- A domain name. In this case, we use
google.bobobk.com
as the Google mirror domain.
I chose an Amazon VPS. Since I couldn’t find a good CentOS image, I used Ubuntu as the operating system.
Steps to build the mirror site:
- Set domain DNS to point to your VPS
- Add the site to your nginx server. I used the BT (BaoTa) panel, which is quite convenient.
- Modify the config file to set up a reverse proxy to Docker’s mapped port
1. Set domain resolution
Since I use Cloudflare CDN, I’ll use it as an example.
……