Giter Site home page Giter Site logo

domain-proxy's Introduction

基于泛域名的内网 HTTP(S) 穿透服务

背景

使用

$ ./domain-proxy

通过 http://192-168-1-101-8080.example.com 即可访问内网 192.168.1.101:8080

配置详解

配置文件参考:config.toml

关闭 ssl 验证

内网服务使用https端口,但是可能并不是使用CA证书,这种情况下代理会出错,通过下面配置关闭:

[proxy]
# 代理时不验证SSL证书
skip_verify_ssl = true

启用域名 https 支持(http2)

  1. 申请一个泛域名证书
  2. 在配置文件 server 段修改下面配置
https = true
https_pem = "/path/to/fullchain.pem"
https_key = "/path/to/privkey.pem"

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.