* New translations test.md (Portuguese, Brazilian) docs(website): new translations * New translations ansible.md (Russian) docs(website): new translations * New translations auth.md (Russian) docs(website): new translations * New translations reverse-proxy.md (Russian) docs(website): new translations * New translations logo.md (Russian) docs(website): new translations * New translations chef.md (Russian) docs(website): new translations * New translations puppet.md (Russian) docs(website): new translations * New translations ci.md (Russian) docs(website): new translations * New translations what-is-verdaccio.md (Russian) docs(website): new translations * New translations node-api.md (Russian) docs(website): new translations * New translations windows.md (Russian) docs(website): new translations * New translations web.md (Russian) docs(website): new translations * New translations use-cases.md (Russian) docs(website): new translations * New translations uplinks.md (Russian) docs(website): new translations * New translations test.md (Russian) docs(website): new translations * New translations ssl.md (Russian) docs(website): new translations * New translations server.md (Russian) docs(website): new translations * New translations repositories.md (Russian) docs(website): new translations * New translations build.md (Russian) docs(website): new translations * New translations protect-your-dependencies.md (Russian) docs(website): new translations * New translations plugins.md (Russian) docs(website): new translations * New translations packages.md (Russian) docs(website): new translations * New translations notifications.md (Russian) docs(website): new translations * New translations logger.md (Russian) docs(website): new translations * New translations kubernetes.md (Russian) docs(website): new translations * New translations install.md (Russian) docs(website): new translations * New translations iis-server.md (Russian) docs(website): new translations * New translations docker.md (Russian) docs(website): new translations * New translations dev-plugins.md (Russian) docs(website): new translations * New translations contributing.md (Russian) docs(website): new translations * New translations config.md (Russian) docs(website): new translations * New translations cli.md (Russian) docs(website): new translations * New translations ansible.md (Serbian (Cyrillic)) docs(website): new translations * New translations reverse-proxy.md (Polish) docs(website): new translations * New translations logo.md (Polish) docs(website): new translations * New translations chef.md (Polish) docs(website): new translations * New translations puppet.md (Polish) docs(website): new translations * New translations ci.md (Polish) docs(website): new translations * New translations what-is-verdaccio.md (Polish) docs(website): new translations * New translations node-api.md (Polish) docs(website): new translations * New translations windows.md (Polish) docs(website): new translations * New translations web.md (Polish) docs(website): new translations * New translations use-cases.md (Polish) docs(website): new translations * New translations uplinks.md (Polish) docs(website): new translations * New translations test.md (Polish) docs(website): new translations * New translations ssl.md (Polish) docs(website): new translations * New translations server.md (Polish) docs(website): new translations * New translations repositories.md (Polish) docs(website): new translations * New translations protect-your-dependencies.md (Polish) docs(website): new translations * New translations plugins.md (Polish) docs(website): new translations * New translations packages.md (Polish) docs(website): new translations * New translations notifications.md (Polish) docs(website): new translations * New translations logger.md (Polish) docs(website): new translations * New translations kubernetes.md (Polish) docs(website): new translations * New translations install.md (Polish) docs(website): new translations * New translations iis-server.md (Polish) docs(website): new translations * New translations docker.md (Polish) docs(website): new translations * New translations dev-plugins.md (Polish) docs(website): new translations * New translations contributing.md (Polish) docs(website): new translations * New translations config.md (Polish) docs(website): new translations * New translations cli.md (Polish) docs(website): new translations * New translations test.md (Portuguese) docs(website): new translations * New translations auth.md (Serbian (Cyrillic)) docs(website): new translations * New translations auth.md (Polish) docs(website): new translations * New translations test.md (Spanish) docs(website): new translations * New translations ansible.md (Vietnamese) docs(website): new translations * New translations auth.md (Vietnamese) docs(website): new translations * New translations reverse-proxy.md (Vietnamese) docs(website): new translations * New translations logo.md (Vietnamese) docs(website): new translations * New translations chef.md (Vietnamese) docs(website): new translations * New translations puppet.md (Vietnamese) docs(website): new translations * New translations ci.md (Vietnamese) docs(website): new translations * New translations what-is-verdaccio.md (Vietnamese) docs(website): new translations * New translations node-api.md (Vietnamese) docs(website): new translations * New translations windows.md (Vietnamese) docs(website): new translations * New translations web.md (Vietnamese) docs(website): new translations * New translations use-cases.md (Vietnamese) docs(website): new translations * New translations uplinks.md (Vietnamese) docs(website): new translations * New translations test.md (Vietnamese) docs(website): new translations * New translations ssl.md (Vietnamese) docs(website): new translations * New translations server.md (Vietnamese) docs(website): new translations * New translations repositories.md (Vietnamese) docs(website): new translations * New translations build.md (Vietnamese) docs(website): new translations * New translations protect-your-dependencies.md (Vietnamese) docs(website): new translations * New translations plugins.md (Vietnamese) docs(website): new translations * New translations packages.md (Vietnamese) docs(website): new translations * New translations notifications.md (Vietnamese) docs(website): new translations * New translations logger.md (Vietnamese) docs(website): new translations * New translations kubernetes.md (Vietnamese) docs(website): new translations * New translations install.md (Vietnamese) docs(website): new translations * New translations iis-server.md (Vietnamese) docs(website): new translations * New translations docker.md (Vietnamese) docs(website): new translations * New translations dev-plugins.md (Vietnamese) docs(website): new translations * New translations contributing.md (Vietnamese) docs(website): new translations * New translations config.md (Vietnamese) docs(website): new translations * New translations cli.md (Vietnamese) docs(website): new translations * New translations build.md (Serbian (Cyrillic)) docs(website): new translations * New translations reverse-proxy.md (Serbian (Cyrillic)) docs(website): new translations * New translations logo.md (Serbian (Cyrillic)) docs(website): new translations * New translations chef.md (Serbian (Cyrillic)) docs(website): new translations * New translations puppet.md (Serbian (Cyrillic)) docs(website): new translations * New translations ci.md (Serbian (Cyrillic)) docs(website): new translations * New translations what-is-verdaccio.md (Serbian (Cyrillic)) docs(website): new translations * New translations node-api.md (Serbian (Cyrillic)) docs(website): new translations * New translations windows.md (Serbian (Cyrillic)) docs(website): new translations * New translations web.md (Serbian (Cyrillic)) docs(website): new translations * New translations use-cases.md (Serbian (Cyrillic)) docs(website): new translations * New translations uplinks.md (Serbian (Cyrillic)) docs(website): new translations * New translations test.md (Serbian (Cyrillic)) docs(website): new translations * New translations ssl.md (Serbian (Cyrillic)) docs(website): new translations * New translations server.md (Serbian (Cyrillic)) docs(website): new translations * New translations repositories.md (Serbian (Cyrillic)) docs(website): new translations * New translations protect-your-dependencies.md (Serbian (Cyrillic)) docs(website): new translations * New translations plugins.md (Serbian (Cyrillic)) docs(website): new translations * New translations packages.md (Serbian (Cyrillic)) docs(website): new translations * New translations notifications.md (Serbian (Cyrillic)) docs(website): new translations * New translations logger.md (Serbian (Cyrillic)) docs(website): new translations * New translations kubernetes.md (Serbian (Cyrillic)) docs(website): new translations * New translations install.md (Serbian (Cyrillic)) docs(website): new translations * New translations iis-server.md (Serbian (Cyrillic)) docs(website): new translations * New translations docker.md (Serbian (Cyrillic)) docs(website): new translations * New translations dev-plugins.md (Serbian (Cyrillic)) docs(website): new translations * New translations contributing.md (Serbian (Cyrillic)) docs(website): new translations * New translations config.md (Serbian (Cyrillic)) docs(website): new translations * New translations cli.md (Serbian (Cyrillic)) docs(website): new translations * New translations test.md (Serbian (Latin)) docs(website): new translations * New translations build.md (Polish) docs(website): new translations * New translations ansible.md (Polish) docs(website): new translations * New translations repositories.md (French) docs(website): new translations * New translations chef.md (French) docs(website): new translations * New translations puppet.md (French) docs(website): new translations * New translations ci.md (French) docs(website): new translations * New translations what-is-verdaccio.md (French) docs(website): new translations * New translations node-api.md (French) docs(website): new translations * New translations windows.md (French) docs(website): new translations * New translations web.md (French) docs(website): new translations * New translations use-cases.md (French) docs(website): new translations * New translations uplinks.md (French) docs(website): new translations * New translations test.md (French) docs(website): new translations * New translations ssl.md (French) docs(website): new translations * New translations server.md (French) docs(website): new translations * New translations reverse-proxy.md (French) docs(website): new translations * New translations protect-your-dependencies.md (French) docs(website): new translations * New translations plugins.md (French) docs(website): new translations * New translations packages.md (French) docs(website): new translations * New translations notifications.md (French) docs(website): new translations * New translations logger.md (French) docs(website): new translations * New translations kubernetes.md (French) docs(website): new translations * New translations install.md (French) docs(website): new translations * New translations iis-server.md (French) docs(website): new translations * New translations docker.md (French) docs(website): new translations * New translations dev-plugins.md (French) docs(website): new translations * New translations contributing.md (French) docs(website): new translations * New translations config.md (French) docs(website): new translations * New translations cli.md (French) docs(website): new translations * New translations build.md (French) docs(website): new translations * New translations logo.md (French) docs(website): new translations * New translations ansible.md (French) docs(website): new translations * New translations test.md (German) docs(website): new translations * New translations auth.md (French) docs(website): new translations * New translations test.md (Arabic) docs(website): new translations * New translations test.md (Chinese Simplified) docs(website): new translations * New translations test.md (Japanese) docs(website): new translations * New translations test.md (Korean) docs(website): new translations * New translations test.md (Hindi) docs(website): new translations * New translations ansible.md (Italian) docs(website): new translations * New translations reverse-proxy.md (Italian) docs(website): new translations * New translations logo.md (Italian) docs(website): new translations * New translations chef.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations ci.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations node-api.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations web.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations ssl.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations repositories.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations packages.md (Italian) docs(website): new translations * New translations notifications.md (Italian) docs(website): new translations * New translations logger.md (Italian) docs(website): new translations * New translations kubernetes.md (Italian) docs(website): new translations * New translations install.md (Italian) docs(website): new translations * New translations iis-server.md (Italian) docs(website): new translations * New translations docker.md (Italian) docs(website): new translations * New translations dev-plugins.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations build.md (Italian) docs(website): new translations
6.7 KiB
id | title |
---|---|
plugins | Wtyczki |
Verdaccio jest aplikacją obsługującą wtyczki. Dzięki temu można rozszerzyć działanie aplikacji na wiele sposobów: wprowadzić nowe metody uwierzytelniania, dodawać punkty końcowe lub użyć niestandardowego magazynu danych.
Jeśli jesteś zainteresowany stworzeniem swojej własnej wtyczki, przeczytaj sekcję dotyczącą programowania.
Usage
Installation
$> npm install --global verdaccio-activedirectory
verdaccio
as a sinopia fork it has backward compability with plugins that are compatible with sinopia@1.4.0
. In such case the installation is the same.
$> npm install --global sinopia-memory
Configuration
Otwórz plik config.yaml
i zaktualizuj sekcję auth
następująco:
The default configuration looks like this, due we use a build-in htpasswd
plugin by default that you can disable just commenting out the following lines.
Auth Plugin Configuration
htpasswd:
file: ./htpasswd
#max_users: 1000
and replacing them with (in case you decide to use a ldap
plugin.
auth:
activedirectory:
url: "ldap://10.0.100.1"
baseDN: 'dc=sample,dc=local'
domainSuffix: 'sample.local'
Multiple Auth plugins
This is tecnically possible, making the plugin order important, as the credentials will be resolved in order.
auth:
htpasswd:
file: ./htpasswd
#max_users: 1000
activedirectory:
url: "ldap://10.0.100.1"
baseDN: 'dc=sample,dc=local'
domainSuffix: 'sample.local'
Konfiguracja wtyczki oprogramowania pośredniego
To jest przykład jak skonfigurować wtyczkę oprogramowania pośredniego. Wszystkie te wtyczki muszą mieć zdefiniowane nazwy z przestrzeni nazw oprogramowań pośrednich.
middlewares:
audit:
enabled: true
You might follow the audit middle plugin as base example.
Store Plugin Configuration
This is an example how to set up a storage plugin. All storage plugins must be defined in the store namespace.
store:
memory:
limit: 1000
If you define a custom store, the property storage in the configuration file will be ignored.
Legacy plugins
Sinopia Plugins
(kompatybilne ze wszystkimi wersjami)
- sinopia-npm: auth plugin for sinopia supporting an npm registry.
- sinopia-memory: auth plugin for sinopia that keeps users in memory.
- sinopia-github-oauth-cli.
- sinopia-crowd: auth plugin for sinopia supporting atlassian crowd.
- sinopia-activedirectory: Active Directory authentication plugin for sinopia.
- sinopia-github-oauth: authentication plugin for sinopia2, supporting github oauth web flow.
- sinopia-delegated-auth: Sinopia authentication plugin that delegates authentication to another HTTP URL
- sinopia-altldap: Alternate LDAP Auth plugin for Sinopia
- sinopia-request: An easy and fully auth-plugin with configuration to use an external API.
- sinopia-htaccess-gpg-email: Generate password in htaccess format, encrypt with GPG and send via MailGun API to users.
- sinopia-mongodb: An easy and fully auth-plugin with configuration to use a mongodb database.
- sinopia-htpasswd: auth plugin for sinopia supporting htpasswd format.
- sinopia-leveldb: a leveldb backed auth plugin for sinopia private npm.
- sinopia-gitlabheres: Gitlab authentication plugin for sinopia.
- sinopia-gitlab: Gitlab authentication plugin for sinopia
- sinopia-ldap: LDAP auth plugin for sinopia.
- sinopia-github-oauth-env Sinopia authentication plugin with github oauth web flow.
All sinopia plugins should be compatible with all future verdaccio versions. Anyhow, we encourage contributors to migrate them to the modern verdaccio API and using the prefix as verdaccio-xx-name.
Verdaccio Plugins
(compatible since 2.1.x)
Authorization Plugins
- verdaccio-bitbucket: Bitbucket authentication plugin for verdaccio.
- verdaccio-bitbucket-server: Bitbucket Server authentication plugin for verdaccio.
- verdaccio-ldap: LDAP auth plugin for verdaccio.
- verdaccio-active-directory: Active Directory authentication plugin for verdaccio
- verdaccio-gitlab: use GitLab Personal Access Token to authenticate
- verdaccio-gitlab-ci: Enable GitLab CI to authenticate against verdaccio.
- verdaccio-htpasswd: Auth based on htpasswd file plugin (built-in) for verdaccio
- verdaccio-github-oauth: Github oauth authentication plugin for verdaccio.
- verdaccio-github-oauth-ui: GitHub OAuth plugin for the verdaccio login button.
Middleware Plugins
-
verdaccio-audit: verdaccio plugin for npm audit cli support (built-in) (compatible since 3.x)
-
verdaccio-profile-api: verdacci plugin for npm profile cli support and npm profile set password for verdaccio-htpasswd based authentificaton
Storage Plugins
(compatible since 3.x)
- verdaccio-memory Storage plugin to host packages in Memory
- verdaccio-s3-storage Storage plugin to host packages Amazon S3
- verdaccio-google-cloud Storage plugin to host packages Google Cloud Storage
Caveats
Not all these plugins are been tested continuously, some of them might not work at all. Please if you found any issue feel free to notify the owner of each plugin.