lightweight implementation of unpkg for self hosting
just run npm run build
to test run npm run test
the config file hierarchy is /etc/unpackage-lite/config.json
< ./config.json
{
"username" : "", // username for basic auth
"password" : "", // password for basic auth
"token" : "", // bearer token (if set, username/password is ignored)
"url": "" // url of your registry
}
run node ./server/app.js
To build your own docker image you can just clone the Dockerfile
, tcp port 3000
is exposed and you can mount the volume /cache
to presist the cache. The config file can be included by adding a /etc/unpackage-light
volume with the config.json
inside
if you want to run the service as https use a reverse proxy with nginx
or apache2