0
0
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:
Rui Lopes 2023-11-28 20:51:38 +00:00 committed by GitHub
parent d5193b3e9b
commit 13e911cf59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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