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

Best way to configure proxy #411

Open
Michenux opened this issue Mar 1, 2013 · 1 comment
Open

Best way to configure proxy #411

Michenux opened this issue Mar 1, 2013 · 1 comment

Comments

@Michenux
Copy link

Michenux commented Mar 1, 2013

We are behind a proxy, what's the best way to configure it ? set HTTP_PROXY, HTTPS_PROXY ? or any special parameters in your product ?

I, [2013-02-28T09:09:53.961122 #23291] INFO -- OpenID: WARNING: making https request to https://www.google.com/accounts/o8/ud without verifying server certificate; no CA path was specified.
E, [2013-02-28T09:10:24.375765 #23283] ERROR -- : worker=0 PID:23291 timeout (31s > 30s), killing
E, [2013-02-28T09:10:24.381205 #23283] ERROR -- : reaped # worker=0
I, [2013-02-28T09:10:24.388087 #23300] INFO -- : worker=0 ready

Best regards.

@cespare
Copy link
Contributor

cespare commented Mar 1, 2013

Hi @Michenux!

I don't think there's any way to do this out-of-the-box. This looks like it would probably do the trick:

http://d.hatena.ne.jp/falkenhagen/20090402/1238638055

So try setting $HTTP_PROXY and $HTTPS_PROXY (not sure if they're both needed) and then put this line of code near the top of barkeep_server.rb (after all the requires):

OpenID.fetcher = OpenID.fetcher_use_env_http_proxy

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