From 595e395c262e332def97c9f1e494ac2efde83614 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Tue, 23 Dec 2025 16:59:57 -0800 Subject: [PATCH] respect HTTPS_PROXY for services --- cmd/bluepages/server.go | 1 + cmd/palomar/main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/bluepages/server.go b/cmd/bluepages/server.go index b7ac746f..b2b26d5b 100644 --- a/cmd/bluepages/server.go +++ b/cmd/bluepages/server.go @@ -60,6 +60,7 @@ func NewServer(config Config) (*Server, error) { HTTPClient: http.Client{ Timeout: time.Second * 10, Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, // would want this around 100ms for services doing lots of handle resolution (to reduce number of idle connections). Impacts PLC connections as well, but not too bad. IdleConnTimeout: time.Millisecond * 100, MaxIdleConns: 1000, diff --git a/cmd/palomar/main.go b/cmd/palomar/main.go index 28c3c8d0..213ae2ee 100644 --- a/cmd/palomar/main.go +++ b/cmd/palomar/main.go @@ -490,6 +490,7 @@ func createEsClient(cmd *cli.Command) (*es.Client, error) { Password: cmd.String("elastic-password"), CACert: cert, Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, MaxIdleConnsPerHost: 20, TLSClientConfig: &tls.Config{ InsecureSkipVerify: insecure, -- 2.51.2