Use a GOPROXY for a specify path/domain

13 views
Skip to first unread message

Pierre Durand

unread,
5:22 AM (4 hours ago) 5:22 AM
to golang-nuts
At my company we use an internal Go proxy in order to access private dependencies.
Our Go proxy manages the authentication to our dependencies repositories.
So my config looks like this:

Unfortunately, our proxy is slightly slower than the public Go proxy for public dependencies (github, etc...)
So I would like to use the public Go proxy for public dependencies, and our internal Go proxy for private dependencies.
I changed my config to:
It works well, but I think it could cause a small privacy issue: it always send a query to the public Go proxy for our private dependencies.

Is it possible to use a specific Go proxy for a path/domain ?
Something like
(I know this syntax doesn't work)
I think it would be very helpful to be able to configure a Go proxy for some domains/path.
Reply all
Reply to author
Forward
0 new messages