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

Using proxy socks5 #1909

Closed
arsalanses opened this issue Dec 26, 2023 · 3 comments
Closed

Using proxy socks5 #1909

arsalanses opened this issue Dec 26, 2023 · 3 comments
Labels
awaiting reply Used in issues when a maintainer is waiting for a reply. question Further information is requested

Comments

@arsalanses
Copy link

Is it possible to config socks5 proxy with athens on servers that has not pure internet access?

@matt0x6F
Copy link
Contributor

Are you wanting to use SOCKS5 to access Athens or do you want Athens to use SOCKS5 when accessing VCS urls?

@arsalanses
Copy link
Author

I want Athens to use SOCKS5 actually

@matt0x6F
Copy link
Contributor

matt0x6F commented Apr 20, 2024

The flow of communication here is that a Go client talks to Athens, Athens talks to a Go client on the Athens host, which in turn talks to Git which talks to VCS hosts.

There's two ways to achieve this that I can think of:

  1. Set git config --global http.proxy socks5://<host:port>.
  2. http_proxy=socks5://<host:port> go mod download -json.

The way to achieve 1 is by taking over Athens' environment on a virtual machine or container and adding a line that sets that parameter.

The way to achieve 2 is by setting http_proxy=socks5://<host:port> via GoBinaryEnvvars

Let me know if either of those work!

@matt0x6F matt0x6F added question Further information is requested awaiting reply Used in issues when a maintainer is waiting for a reply. labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply Used in issues when a maintainer is waiting for a reply. question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants