Coder Social home page Coder Social logo

kong-http-proxy's Introduction

kong-http-proxy

A Kong plugin that allows access to an upstream url through a http proxy.

---

Configuration

Add this plugin globally or attached to an API. All calls to the API's upstream URL will then be proxied through the specify proxy host and port.

# Common usage
$ curl -X POST http://kong:8001/apis/{api}/plugins \
    --data "name=http-proxy" \
    --data "config.host=127.0.0.1" \
    --data "config.port=8118" \
    --data "config.log_enable=false"
#
# Client certificates can be configured
$ curl -X POST http://kong:8001/apis/{api}/plugins \
    --data "name=http-proxy" \
    --data "config.host=127.0.0.1" \
    --data "config.port=8118" \
    --data "config.ssl_client_cert=/path/to/client/cert" \
    --data "config.ssl_client_priv_key=/path/to/client/key" \
    --data "config.log_enable=false"

Installation

Clone the repository, navigate to the root folder and run:

make install

Add the custom plugin’s name to the plugins list in your Kong configuration (on each Kong node):

plugins = bundled,http-proxy

Restart Kong to apply the plugin:

kong restart

Or, if you want to apply a plugin without stopping Kong, you can use this:

kong prepare
kong reload

kong-http-proxy's People

Contributors

jichangfeng avatar

Stargazers

 avatar assassin avatar  avatar

Watchers

 avatar

Forkers

assasin0308

kong-http-proxy's Issues

mtls not working

作者您好,据我了解OpenResty 1.21.4.2 RC1 才将内置lua-nginx-module升级到 v0.10.24。而最新的kong 3.3.0使用的是openresty/1.21.4.1 中内置ngx_lua-0.10.21 而文件使用的ssl_client_cert 和ssl_client_priv_key使用版本限制是ngx_lua_http_module >= v0.10.23. 所以我认为应该不能解决mtls的问题

代理https tls双向认证

作者您好,
当我想要用这个插件去代理kong https双向认证的请求,发现请求转发出去并没又携带客户端证书导致请求无法转发这个问题需要怎么配置能解决呢

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.