tarepanda1024 / kong-plugin-http-mirror Goto Github PK
View Code? Open in Web Editor NEWA Kong plugin that will mirror original request to other endpoints.
A Kong plugin that will mirror original request to other endpoints.
Hi,
I've tried to make the plugin work in Kong 1.5.1. For that I made a fork - https://github.com/lgazo/kong-plugin-http-mirror.
I successfully started Kong with the plugin but when I enabled it for a route, it returned 502 all the time. Even when I removed the configuration the version of Kong with this plugin could not proxy anymore.
This is the log:
2021/02/04 20:55:34 [error] 30#0: *68278 upstream sent too big header while reading response header from upstream, client: 10.0.0.143, server: kong, request: "GET /analytics
-console/app/advanced-analytics HTTP/1.1", upstream: "http://10.0.0.130:5603/analytics-console/app/advanced-analytics", host: "<kong>",
referrer: "https://<mirror_endpoint>/analytics-console/app/advanced-analytics"
10.0.0.143 - - [04/Feb/2021:20:55:34 +0000] "GET /analytics-console/app/advanced-analytics HTTP/1.1" 502 160 "https://<kong>/analytics-
console/app/advanced-analytics" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36"
I tried to increase the proxy buffers to KONG_NGINX_PROXY_PROXY_BUFFER_SIZE=256k
but that did not help either.
Because I am not an expert writer of Kong plugins I seek advice :)
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.