GithubHelp home page GithubHelp logo

x0us / frps-nginx-https Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raymond9zhou/frps-nginx-https

0.0 0.0 0.0 113 KB

nginx反代frps实现https的模板配置文件

Home Page: https://blog.ray8.cc/archives/frpc-frps-nginx-real-ip-https-rewrite-ssl-cert-pure-code.html

License: MIT License

frps-nginx-https's Introduction

frps-nginx-https ——nginx反代frps实现https的模板配置文件

blog说明地址:点击此处

如有问题请在blog留言或者在知乎私信~

服务器拓扑假设

服务器拓扑假设 如上图所示,假设本地有两台服务器,一台nginx服务器负责本地网站的承载下面称为LS1,另一台负责运行frpc下面称为LS2,实际使用中这两台服务器可以合二为一,远端有一台frps服务器

可实现以下四种功能

  1. (放在case1中)本地LS1正确配置http跳转到https(TLS),远端frps直接监听80 443端口
  2. (放在case2中)本地LS1正确配置http跳转到https(TLS),远端nginx反代frps转发的https实现泛解析和http跳转到https,frps监听其他端口(适用于想要正确传递https客户端真实IP,由于frpc到frps线路质量不佳需要缓存,frps服务器同时需要挂其他网站等特殊需求)
  3. (放在case3中)本地LS1只配置http,远端nginx反向代理frps转发的http到https,frps监听其他端口(是远端nginx反代的伪https,极不推荐,但如有本地特殊http需求或因为懒癌晚期本地确不想用https的请看本部分)
  4. (放在case4中)本地LS1只配置http,远端nginx反向代理frps转发的http到http,frps监听其他端口

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.