V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
isCyan
V2EX  ›  分享创造

Docker 一键 Google 反代镜像

  •  
  •   isCyan ·
    bohanyang · 2016-02-20 20:21:13 +08:00 · 7888 次点击
    这是一个创建于 2995 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/bohanyang/onemirror

    演示不要玩坏了哟

    https + www 点 fonts.penbeat.cn 端口 11671

    请自己拼接成网址,这是防止被 K 及滥用

    只要一句话就可以用了:

    $ docker run -p 80:80 -d bohan/onemirror
    

    想要开启 SSL 和 HTTP/2

    只要 Fork 项目加上证书修改配置 Build 一下就好了

    按照 https://github.com/bohanyang/onemirror/tree/master/nginx/ssl
    的说明生成 DH parameter 并配置好之后直接 A+

    就是方便!(还附带 Google Fonts 和 Gravatar 反代配置)

    https://github.com/bohanyang/onemirror/tree/master/nginx/conf.d

    感谢 cuber 的 ngx_http_google_filter_module

    让 Google 无处不在吧~

    12 条回复    2017-10-17 10:22:09 +08:00
    codeninja
        1
    codeninja  
       2016-02-20 21:22:51 +08:00 via iPhone   ❤️ 1
    已 star ,真会玩
    ixinshang
        2
    ixinshang  
       2016-02-20 21:25:13 +08:00   ❤️ 1
    感谢!
    hiroya
        3
    hiroya  
       2016-02-20 21:30:25 +08:00 via iPad   ❤️ 1
    楼主是会玩的,感谢
    Kahn
        4
    Kahn  
       2016-02-20 21:57:45 +08:00
    可以反代 Google Scholar 吗
    maskerTUI
        5
    maskerTUI  
       2016-02-20 22:21:33 +08:00   ❤️ 1
    这个好!
    isCyan
        6
    isCyan  
    OP
       2016-02-20 22:25:35 +08:00
    @Kahn 配置里加一行 google_scholar on; 就好了,这是用 https://github.com/cuber/ngx_http_google_filter_module 这个 Nginx 模块的
    isCyan
        7
    isCyan  
    OP
       2016-02-20 23:21:49 +08:00
    @Kahn Docker Hub 镜像已更新,已支持学术搜索
    Themyth
        8
    Themyth  
       2016-02-21 14:15:43 +08:00
    牛 X 。
    endlessroad1991
        9
    endlessroad1991  
       2016-02-21 16:59:21 +08:00
    赞!

    不过根据以往经验,此类网址只要发出来,要么过段时间用的人太多只能关闭,要么被重点关照无法访问。。
    cnleoyang
        10
    cnleoyang  
       2016-02-21 19:52:19 +08:00
    部署很方便,同赞
    isCyan
        11
    isCyan  
    OP
       2016-02-21 23:11:00 +08:00 via iPhone
    @endlessroad1991 这只是个演示,我是给你自己搭建方便的
    oldmenplus
        12
    oldmenplus  
       2017-10-17 10:22:09 +08:00
    Σ(゚д゚;) 还能这样玩
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2392 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:49 · PVG 14:49 · LAX 23:49 · JFK 02:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.