Coder Social home page Coder Social logo

nginx-reverse-proxy-to-google-with-ssl's Introduction

nginx-reverse-proxy-to-google-with-ssl

  • 请将 g.foo.bar 替换为你反向代理的 google 的域名
  • 请将 /var/nginx/cache/one 替换为你的nginx缓存目录,max_size为缓存区大小,需要对应的权限设置;
  • upstream google 段是设置的 google 原始可正常访问的 IP 的负载均衡,可以在自己的服务器上 ping 一下 google,找到快的 IP;
  • 反向代理中考虑到自动关键字提示,替换了对应的 cookie,如果被 google block,请尝试更换该 cookie 内容;
  • 443 端口需要替换对应的证书,当然你用自己签发的也没关系,建议使用免费的 ssl 证书。

额外注意

nginx 启用了设置了密码的证书的 ssl 之后,每次 restart 或者 reload 需要输入证书的密码(类似于提示:Enter PEM pass phrase:)。 如果你觉得烦,解决方法如下: openssl rsa -in 你的ssl密钥.key -out 你的ssl密钥.key.unsecure 然后将配置中的 ssl_certificate_key 你的 ssl 密钥.key; 更改为 ssl_certificate_key 你的 ssl 密钥.key.unsecure;

nginx-reverse-proxy-to-google-with-ssl's People

Contributors

alexroyce315 avatar

Watchers

 avatar

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.