0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/website/translated_docs/es-ES/plugins.md
verdacciobot e9660ef656 New Crowdin translations (#839)
* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations en.json (Portuguese, Brazilian)
docs(website): new translations

* New translations web.md (Portuguese, Brazilian)
docs(website): new translations

* New translations install.md (Spanish)
docs(website): new translations

* New translations en.json (Spanish)
docs(website): new translations

* New translations plugins.md (Spanish)
docs(website): new translations

* New translations web.md (Spanish)
docs(website): new translations

* New translations plugins.md (Portuguese, Brazilian)
docs(website): new translations

* New translations dev-plugins.md (Chinese Simplified)
docs(website): new translations

* New translations plugins.md (Chinese Simplified)
docs(website): new translations

* New translations install.md (Chinese Simplified)
docs(website): new translations

* New translations install.md (Portuguese, Brazilian)
docs(website): new translations

* New translations dev-plugins.md (Portuguese, Brazilian)
docs(website): new translations

* New translations en.json (Chinese Simplified)
docs(website): new translations

* New translations web.md (Chinese Simplified)
docs(website): new translations

* New translations protect-your-dependencies.md (Chinese Simplified)
docs(website): new translations

* New translations protect-your-dependencies.md (Chinese Simplified)
docs(website): new translations

* New translations protect-your-dependencies.md (Chinese Simplified)
docs(website): new translations

* New translations repositories.md (Chinese Simplified)
docs(website): new translations

* New translations reverse-proxy.md (Chinese Simplified)
docs(website): new translations

* New translations reverse-proxy.md (Chinese Simplified)
docs(website): new translations

* New translations reverse-proxy.md (Chinese Simplified)
docs(website): new translations

* New translations server.md (Chinese Simplified)
docs(website): new translations

* New translations server.md (Chinese Simplified)
docs(website): new translations

* New translations server.md (Chinese Simplified)
docs(website): new translations

* New translations server.md (Chinese Simplified)
docs(website): new translations

* New translations ssl.md (Chinese Simplified)
docs(website): new translations

* New translations ssl.md (Chinese Simplified)
docs(website): new translations

* New translations protect-your-dependencies.md (Chinese Simplified)
docs(website): new translations

* New translations ssl.md (Chinese Simplified)
docs(website): new translations

* New translations protect-your-dependencies.md (Chinese Simplified)
docs(website): new translations

* New translations repositories.md (Chinese Simplified)
docs(website): new translations

* New translations reverse-proxy.md (Chinese Simplified)
docs(website): new translations

* New translations reverse-proxy.md (Chinese Simplified)
docs(website): new translations

* New translations server.md (Chinese Simplified)
docs(website): new translations

* New translations ssl.md (Chinese Simplified)
docs(website): new translations

* New translations protect-your-dependencies.md (Chinese Simplified)
docs(website): new translations

* New translations reverse-proxy.md (Chinese Simplified)
docs(website): new translations
2018-07-25 07:56:23 +02:00

6.6 KiB

id title
plugins Plugins

Verdaccio is an plugabble aplication. It can be extended in many ways, either new authentication methods, adding endpoints or using a custom storage.

If you are interested to develop your own plugin, read the development section.

Uso

Instalación

$> npm install --global verdaccio-activedirectory

verdaccio como un fork de sinopia tiene compatibilidad con versiones anteriores, con plugins que son compatibles con sinopia@1.4.0. En tal caso la instalación es la misma.

$> npm install --global sinopia-memory

Configuración

Abra el archivo config.yaml y actualice la sección auth como a continuación:

La configuración por defecto luce así, debido a que usamos un plugin htpasswd incorporado por defecto que puede desactivar con solo comentar las siguientes líneas.

Configuración del Plugin Auth

 htpasswd:
    file: ./htpasswd
    #max_users: 1000

y reemplazándolos con (en caso de que decida usar un plugin ldap).

auth:
  activedirectory:
    url: "ldap://10.0.100.1"
    baseDN: 'dc=sample,dc=local'
    domainSuffix: 'sample.local'

Múltiples Plugins Auth

Esto es técnicamente posible, el orden de los plugins se vuelve importante, las credenciales serán resueltas en orden.

auth:
  htpasswd:
    file: ./htpasswd
    #max_users: 1000
  activedirectory:
    url: "ldap://10.0.100.1"
    baseDN: 'dc=sample,dc=local'
    domainSuffix: 'sample.local'

Configuración del Plugin Middleware

Este es un ejemplo de como se instala un plugin middleware. Todos los plugins middleware deben estar definidos en el namespace middlewares.

middlewares:
  audit:
    enabled: true

You might follow the audit middle plugin as base example.

Configuración del Plugin Store (Almacén)

Este es un ejemplo de como instalar un plugin de almacenamiento. Todos los plugins de almacenamiento debe estar definidos en el namespace store.

store:
  memory:
    limit: 1000

If you define a custom store, the property storage in the configuration file will be ignored.

Plugins heredados

Plugins de Sinopia

(compatible con todas las versiones)

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.

Plugins de Verdaccio

(compatible desde 2.1.x)

Plugins de Autorización

Plugins de Middleware

  • verdaccio-audit: plugin de verdaccio para soporte cli de npm audit (incorporado) (compatible desde 3.x)

  • verdaccio-profile-api: plugin de verdaccio para soporte cli de npm profile y npm profile set password para la autenticación basada en verdaccio-htpasswd

Plugins de Storage (Almacenamiento)

(compatible desde 3.x)

Advertencias

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.