Giter Site home page Giter Site logo

google-in-docker's Introduction

Google Mirror in Docker

This repo is a fork of Onemirror

Changes

  • Add docker-compose.yml to make it run simply.
  • Use customized google reverse proxy module to make it faster for users in China Mainland.
  • Add auth support.

Usage

  • Run the following code in bash or zsh:
wget -qO- https://get.docker.com/ | sudo sh

sudo usermod -aG docker `whoami`

sudo pip install -U docker-compose

curl -L https://raw.githubusercontent.com/docker/compose/1.2.0/contrib/completion/bash/docker-compose > /etc/bash\_completion.d/docker-compose | sudo bash
  • Put your certs in nginx/certs, and then modify settings in nginx/conf.d/google.conf.
  • docker-compose up -d.

Security Note

  • This proxy can be used to access any url even not google: example (access with pwd:ice).
  • So please watch your bandwidth to avoid being abused(To build a domain whitelist may be hard and not up-to-date).
  • If you run some thing like swarm(port 2375 is exposed, which can be used to get root privilege through a simple HTTP request in my experient before), or some services not designed to all users, please make sure it cannot be connected by this docker or directly accessed. Maybe a blacklist with intranet ip should be used, which can be done using iptables by your own if you need.

Demo Site

License

MIT

google-in-docker's People

Contributors

ihciah avatar wwqgtxx 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

Watchers

 avatar  avatar  avatar  avatar  avatar

google-in-docker's Issues

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.