galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.14k stars 169 forks source link

Configuring a custom 'host' url instead of the AWS hosted binaries #440

Open appSecAu opened 4 years ago

appSecAu commented 4 years ago

Hi, thanks for providing this library.

We are behind a proxy and trying to access HummusJS, which blocks us from downloading the binary dependencies from AWS which are listed in the following file: https://github.com/galkahana/HummusJS/blob/master/package.json

"binary": { "module_name": "hummus", "module_path": "./binding", "remote_path": "./{module_name}/v{version}/{toolset}/", "host": "https://hummus.s3-us-west-2.amazonaws.com", "package_name": "{node_abi}-{platform}-{arch}-{libc}.tar.gz" }

We can take a copy of the AWS binaries and host it internally. But we need the ability to define a custom ‘host’ value to point to the internal host url.

Is there a supported way to define an internal / custom host url for the ‘binary’ > ‘host’ param?