Multiple registries? #2309
-
I'm looking to switch over to Verdaccio from Nexus but there's one thing I can't see any evidence of Verdaccio supporting - multiple registries at the root level. Am I missing something? All of the documentation I've seen show commands like this:
...suggesting there's only one registry. In Nexus I can create any number of registries and then connect to them:
I need this because I serve different contents for a given package to different people. I have a number of users who all want the package Incidentally, I suppose an alternative is some means of identifying, for a given authenticated user, from where in the storage that package should be sourced. If such a plugin exists or could be built I'm also interested in that. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
...further to my last point about a plugin, I guess that would fall into the category of a "storage plugin": https://verdaccio.org/docs/en/plugin-storage I'm brand new to this codebase but this method seems like the one that I would want to inject my functionality into:
and it doesn't take any user information, which would seem to scupper that idea. Any thoughts/suggestions appreciated. |
Beta Was this translation helpful? Give feedback.
-
I don't think verdaccio support such workflow or any plugin that does something like that. Regarding the plugin, currently the storage plugin does not have access to the auth, only configuration. Only the middle ware has access two both (auth, storage) instances. Maybe in the future this change but I have no a clear suggestion a this point. |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back to me. Looking at what's available to a middleware plugin, and some of the example use cases, I think a middleware plugin could well be a candidate. |
Beta Was this translation helpful? Give feedback.
I don't think verdaccio support such workflow or any plugin that does something like that.
Regarding the plugin, currently the storage plugin does not have access to the auth, only configuration. Only the middle ware has access two both (auth, storage) instances. Maybe in the future this change but I have no a clear suggestion a this point.