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
Support for running athens behind a company proxy #1534
Comments
@Dominik-Robert Athens gets code from the VCS on-demand, so if it can't reach the internet, you'll need to pre-load code yourself. See this document for how to do that with disk storage. Regarding custom TLS certificates, Athens runs unsecured by default, but you can specify your own with these configuration variables Lines 121 to 125 in 4530a58
Can you let me know if that helps? |
Thank you for your answer. I get it running with preload code, but is it possible that athens fetch the code from VCS from the internet behind a company proxy? |
@Dominik-Robert it depends on the proxy, I suppose. Athens doesn't have built-in support for any proxy protocols. Is that what you'd need? |
Yes I need that. Is it possible to support that? |
@Dominik-Robert behind the scenes, Athens uses the |
Just an FYI: if you can |
Oh @marwan-at-work that is a good point I will look at. @arschles I don´t know exactly I want to use Athen normally behind a proxy. So I would think http and https for the VCS-Systems would be enough or am I missing something? |
@Dominik-Robert yes, http/https for VCS systems definitely would be enough. I thought that we were talking about a corporate auth proxy like NTLM or something similar. Sorry about that. Let us know if you can do the |
It so far as I can download the first 5 packages. I don't know why it is failing for the other packages. It says it is not finding them. My go.mod file
Athens-Output
*EDIT: When I change the entrypoint to /bin/sh and go inside the container with a shell to set the proxies in git I get a 500 error. When I unset GOPROXY and run go mod download all packages are downloaded |
@Dominik-Robert I wasn't able to reproduce the issue:
Logs are a result of I have noticed however, that there has been intermittent failures with git so what I'd do is to just try again and see if that works. Kind of a bad answer, but if you can find a way to reproduce this please include the reproduction steps so we can dig into why it might be happening :) |
@Dominik-Robert I'm going to close this issue. If you still have this problem, please let us know. |
Hello, I'm trying to run the athens proxy in my company but it failed with a 404 error. I think he can't get the resource from the VCS from the internet. One more problem is that we have a proxy certificate, so the certificate is invalid.
I dont know if it is already supportet but it would be great if you can implement a support for own ssl-certificates and an option to run this behind a company proxy.
The text was updated successfully, but these errors were encountered: