jlelse
/
ProxyExposer
Archived
1
Fork 0

Some extra options to hopefully fix some problems
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jan-Lukas Else 2021-10-30 12:56:21 +02:00
parent 4ab3108f30
commit 3db34060de
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ func main() {
rp := httputil.NewSingleHostReverseProxy(upstreamUrl)
rp.Transport = &http.Transport{
Proxy: http.ProxyURL(proxyUrl),
Proxy: http.ProxyURL(proxyUrl),
DisableKeepAlives: true,
DisableCompression: true,
}
err = http.ListenAndServe("0.0.0.0:"+strconv.Itoa(port), http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {