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

[api] Added support for using Jitsu through a proxy server. #106

Closed
wants to merge 1 commit into from

Conversation

AvianFlu
Copy link
Contributor

@pkumar was having trouble using jitsu from his university's network, so @dominictarr and I looked into the situation.

This patch adds support for a proxy property in .jitsuconf, which should be set to the hostname of the proxy server to be used. If proxy is set, the request headers are adjusted accordingly.

@indexzero
Copy link
Member

Looks good to me.

@pksunkara
Copy link
Contributor

This is not working for me.

info:   Welcome to Nodejitsu
info:   It worked if it ends with Nodejitsu ok
info:   Executing command login
prompt: username: pkumar
prompt: password: 
{ method: 'GET',
  uri: 'http://localhost:10001/auth',
  headers: 
   { Authorization: 'Basic *******==',
     'Content-Type': 'application/json',
     host: 'http://api.nodejitsu.com' } }
error:  Unable to Authenticate as pkumar
error:  Jitsu requires you to connect to Nodejitsu's stack (api.nodejitsu.com)

even with replacing host with Host

@pksunkara
Copy link
Contributor

Refer #107

@AvianFlu
Copy link
Contributor Author

@pkumar is right: I only set the headers, his pull request in #107 uses the proxy option in request, which allows for proxy auth and other such goodies.

@AvianFlu AvianFlu closed this Sep 26, 2011
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

Successfully merging this pull request may close these issues.

None yet

3 participants