Skip to content

HTTP proxy for loading pods? #1497

Answered by borkdude
sunng87 asked this question in Q&A
Discussion options

You must be logged in to vote

@sunng87 Hi! The code where the pod is downloaded is here:

https://github.com/babashka/pods/blob/75c2216649bf5caf3ae41e7b8fc202e45b090ea9/src/babashka/pods/impl/resolver.clj#L106-L115

I suspect that bb -Dhttps.proxyHost=... should work.

E.g. I see that

bb -Dhttps.proxyHost=foobar -e '(slurp "https://clojure.org")'

fails, because of the invalid proxy host. You. could use the BABASHKA_PRELOADS environment variable to programmatically set the system property as well. Let me know if this works for you or not.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sunng87
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants