Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Install kappa behind a corporate proxy #48

Open
mathieuboniface opened this issue Mar 5, 2014 · 10 comments
Open

Install kappa behind a corporate proxy #48

mathieuboniface opened this issue Mar 5, 2014 · 10 comments

Comments

@mathieuboniface
Copy link

Is there any way to install kappa behind a corporate proxy ?

I sucessfully installed kappa with only one declared paths to my local couchdb instance (tested commands : npm {adduser, search, test, publish, install}), but npm install XXX fails (freeze) if I add http://registry.npmjs.org/ as a second paths to the kappa configuration file.

I also tried to run kappa with some options without more success :

export http_proxy="http://user:password@host:port"
export https_proxy=$http_proxy
# this works well
wget http://registry.npmjs.org/

# Setting the proxy configuration to npm
npm config set proxy $http_proxy
npm config set https-proxy $http_proxy

# npm client fails with this configuration
kappa -c config.json --proxy $http_proxy --https-proxy $https_proxy
@jmaher409
Copy link

I'm running into the same issue. Have you had any luck since you wrote this?

@totherik
Copy link
Contributor

totherik commented Jun 5, 2014

Hmm, so kappa uses hapi's built in reply.proxy which internally uses Nipple. We can see if anything has changed in this API in more recent versions of hapi or look at alternate solutions.

Also, it looks like @tlivings started investigating this at some point.

@tlivings
Copy link
Contributor

tlivings commented Jun 5, 2014

The issue is because reply.proxy can not take custom agents, where a custom agent would be necessary to handle the proxy step.

I'm in the process of opening a PR against Hapi to resolve this. The alternative is to implement it ourselves and not use reply.proxy.

@totherik
Copy link
Contributor

totherik commented Jun 5, 2014

either way, this is pretty important for kappa. I'll defer to you @tlivings for the best approach, but for now I guess let's see if we get any traction with hapi.

@ndvivedi
Copy link

I have submitted a pull request on hapi to allow for an agent to be passed into the reply.proxy handler. If this gets pulled in, the version of hapi kappa depends on would need to be bumped (currently hapi is at 6.5.0) to use it.

@tlivings
Copy link
Contributor

tlivings commented Sep 9, 2014

Kappa has been upgrade to use Hapi 6. We should be ready to work against this change now.

@lynxor
Copy link

lynxor commented Nov 26, 2015

Any news on this? Struggling to set this up behind corporate proxy.

@tlivings
Copy link
Contributor

tlivings commented Dec 3, 2015

I thought there was a PR to support custom agents (as noted above). We should definitely look back into this.

cc @jasisk

@ds82
Copy link

ds82 commented Aug 31, 2016

Any update on this?

@out4b
Copy link

out4b commented Feb 7, 2018

bump. Is there any plan to support this feature?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants