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

vhost issue + NPM install shasum check failed #117

Open
acl0056 opened this issue May 13, 2016 · 3 comments
Open

vhost issue + NPM install shasum check failed #117

acl0056 opened this issue May 13, 2016 · 3 comments

Comments

@acl0056
Copy link

acl0056 commented May 13, 2016

After updating (maybe from RC 8), vhost appears to be broken. I get the checksum error because kappa is not writing the vhost, and npm is attempting to download http://localhost:8200/something/-/something-2.0.4.tgz, while the server I am installing on is serving a page for port 8200.

@acl0056
Copy link
Author

acl0056 commented May 13, 2016

I am mistaken. This is in the rewriteTarballs section, where it tries to get host from request. It could be that I am having trouble with Nginx proxy setting the Host header, even though I believe I have Nginx configured correctly. For whatever reason, host is set to localhost:8200 unless I hardcode the right value in there. Unfortunately, that is what I had done before updating and forgot about it.

@acl0056
Copy link
Author

acl0056 commented May 13, 2016

Actually, I have to have Nginx NOT rewrite the host header for the tarballs to get served. Fortunately I have it working again, but unfortunately it requires a code change. Maybe you could consider providing config options for the host info instead of getting it from the request.

@shaunwarman
Copy link
Member

shaunwarman commented Jul 16, 2016

Sorry @acl0056 ... could you elaborate on where you are at?

Is it related to the host header in this section of code?

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

2 participants