-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I'm currently hosting several versions of this library on some AWS instances. I've been having people reporting issues with package installation timeouts, which seem to be stemming from the following line of code:
All packages are having their baseUrl set to whatever the server's config.host property was set. In theory, this should work with no issues. In practice, however, it is relatively common to have the server's bound hostname different from the hostname client's are using for requests (think of load-balanced servers, for example).
What I think would correct this issue would be swapping over to using the requested hostname in the http request, rather than the config.host value.
Here's a screencap of the issue clients are running into when trying to use our private npm repo:

