Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set http_proxy? #100

Open
arun0009 opened this issue Aug 30, 2024 · 1 comment
Open

How to set http_proxy? #100

arun0009 opened this issue Aug 30, 2024 · 1 comment

Comments

@arun0009
Copy link

How can I set http proxy?

I'm getting SSL handshake error:

pkl-gen-go --help
panic: –– Pkl Error ––
	Exception when making request `GET https://pkg.pkl-lang.org/pkl-go/[email protected]`:
	Error during SSL handshake with host `pkg.pkl-lang.org`:
	Connection reset
@HT154
Copy link
Contributor

HT154 commented Sep 3, 2024

There's no way to directly configure an HTTP proxy on the pkl-gen-go CLI, but it looks like you may be able to specify one via a PklProject file. In a PklProject file:

evaluatorSettings {
  http {
    proxy {
      address = "proxy.example.com:80"
      noProxy { "internal.example.com"; "localhost" }
    }
  }
}

This file needs to be in the directory where you run pkl-gen-go, a parent directory, or in the directory specified by the --project-dir flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants