mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 10:33:46 +00:00
feat(provider): modify the proxmox api client to support connecting through an https proxy (#748)
feat: modify the proxmox api client to support connecting through an https proxy to use, set the https_proxy environment variable before running terraform for example: export https_proxy=http://localhost:8080 Signed-off-by: Rui Lopes <rgl@ruilopes.com>
This commit is contained in:
parent
d5193b3e9b
commit
13e911cf59
@ -74,6 +74,7 @@ func NewConnection(endpoint string, insecure bool) (*Connection, error) {
|
||||
}
|
||||
|
||||
var transport http.RoundTripper = &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
TLSClientConfig: &tls.Config{
|
||||
MinVersion: tls.VersionTLS13,
|
||||
InsecureSkipVerify: insecure, //nolint:gosec
|
||||
|
Loading…
Reference in New Issue
Block a user