jdx / npm-register

Your own private npm registry and backup server
ISC License
483 stars 68 forks source link

Passing authorization details from env vars? #109

Closed holms closed 6 years ago

holms commented 6 years ago

Currently it's only reading auth details from htpasswd file? It's against 12factorapp and it doesn't scale, I need to build own container with htpasswd, instead of using your container (which actually absent on docker hub). That's not good :) I'm expecting to pass auth parameters via cli, or with env vars.

Might submit PR.

jdx commented 6 years ago

This is because the intention is for the users list to be dynamic data, not configuration. Ideally there should be a way to add/remove users at runtime with a web interface or CLI.

holms commented 6 years ago

I've actually ended up using docker secrets under docker swarm, which actually requires to have password in file (strange standard). Might be useful for someone.