f6dfcbe774
bugfix proxy and rewrite, updated test with actual call settings
2020-09-16 19:29:22 -07:00
1a6ec73e57
using url.EscapedPath instead of custom GetPath, rewritePath func added to middleware - used by proxy and rewrite
2020-08-31 13:09:24 -07:00
6463bcb190
added ModifyResponse option to ProxyConfig ( #1622 )
...
Co-authored-by: Peter C <petoc@users.noreply.github.com >
2020-08-27 17:51:27 -07:00
2207c37bf8
use echo.GetPath for rewrite in proxy ( #1548 )
...
Co-authored-by: Arun Gopalpuri <arun@gopalpuri.com >
2020-04-08 08:19:22 -07:00
7c5af01350
Safer/trustable extraction of real ip from request ( #1478 )
...
* Safer/trustable extraction of real ip from request
* Fix x-real-ip handling on proxy
* fix docs
* fix default check
2020-02-24 08:29:34 -08:00
05262e484a
Capture proxy middleware error
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2019-10-06 16:56:21 -07:00
775b2eefec
Refactor DefaultProxyConfig Skipper & WebSocket Check in Context ( #1297 )
...
* refactor: default to DefaultProxyConfig.Skipper if not provided
* refactor: use strings library for websocket check
2019-03-02 10:43:23 -08:00
6d9e043284
Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism
...
This reintroduces support for Go modules, as v4.
CloseNotifier() is removed as it has been obsoleted, see https://golang.org/doc/go1.11#net/http
It was already NOT working (not sending signals) as of 1.11 the functionality was gone, we merely
deleted the functions that exposed it. If anyone still relies on it they should migrate to using
`c.Request().Context().Done()` instead.
Closes #1268 , #1255
2019-01-30 16:11:42 +02:00
bc37a3a792
Proxy: Better errors + remote custom TLS ( #1197 )
...
Proxy will be more verbose on errors + possibility to configure custom transport (example: for custom TLS certificates)
2018-10-13 11:40:19 +05:30
fcdf096c2c
extend proxy middleware. closes #1202 ( #1203 )
...
* extend proxy middleware. closes #1202
2018-10-09 09:13:39 +05:30
f49d166e6f
[FIX] Cleanup code ( #1061 )
...
Code cleanup
2018-02-21 10:44:17 -08:00
9ae7047759
Rewrite rules for proxy middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-12-27 15:14:44 -08:00
62f95acdd7
Dynamically add/remove proxy targets
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-12-25 14:39:37 -08:00
7d67651a3b
check proxy skipper before proceeding ( #992 )
2017-08-19 18:42:58 -07:00
2d7cce4677
Updated godoc
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-15 08:44:21 -07:00
e1e3ebe5a1
Proxy middleware refactor
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-15 08:19:18 -07:00
3673d7fb44
Enhanced proxy middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-06 15:01:13 -07:00
c3887ebb13
Added Context#IsWebSocket(), proxy fix header
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-04 10:39:08 -07:00
68b89eca6c
Updated godco for middleware/proxy
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-03 21:23:15 -07:00
0898d9e68b
Exposed proxy balancer interface
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-03 17:37:35 -07:00
a8cd0ad133
Closes #942
...
Signed-off-by: Vishal Rana <vr@labstack.com >
2017-06-02 18:13:26 -07:00