1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/website/translated_docs/fr/config.md
VerdaccioBot a606f2f16d chore: New Crowdin translations (#1082)
* New translations docker.md (Italian)
docs(website): new translations

* New translations docker.md (Italian)
docs(website): new translations

* New translations docker.md (Italian)
docs(website): new translations

* New translations iis-server.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 iis-server.md (Italian)
docs(website): new translations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* New translations ansible.md (French)
docs(website): new translations

* New translations ansible.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations cli.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations build.md (French)
docs(website): new translations

* New translations build.md (French)
docs(website): new translations

* New translations cli.md (French)
docs(website): new translations

* New translations cli.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.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 config.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

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

* New translations config.md (French)
docs(website): new translations

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

* New translations config.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

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

* New translations config.md (French)
docs(website): new translations

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

* New translations config.md (French)
docs(website): new translations

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

* New translations build.md (French)
docs(website): new translations

* New translations cli.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations auth.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

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

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

* New translations auth.md (French)
docs(website): new translations

* New translations cli.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

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

* New translations auth.md (French)
docs(website): new translations

* New translations cli.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

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

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

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

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

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

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

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

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

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

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

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

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

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

* New translations build.md (French)
docs(website): new translations

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

* New translations contributing.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

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

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

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

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

* New translations ansible.md (Serbian (Cyrillic))
docs(website): new translations

* New translations repositories.md (Serbian (Latin))
docs(website): new translations

* New translations cli.md (Serbian (Latin))
docs(website): new translations

* New translations config.md (Serbian (Latin))
docs(website): new translations

* New translations contributing.md (Serbian (Latin))
docs(website): new translations

* New translations dev-plugins.md (Serbian (Latin))
docs(website): new translations

* New translations docker.md (Serbian (Latin))
docs(website): new translations

* New translations iis-server.md (Serbian (Latin))
docs(website): new translations

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

* New translations kubernetes.md (Serbian (Latin))
docs(website): new translations

* New translations logger.md (Serbian (Latin))
docs(website): new translations

* New translations notifications.md (Serbian (Latin))
docs(website): new translations

* New translations packages.md (Serbian (Latin))
docs(website): new translations

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

* New translations protect-your-dependencies.md (Serbian (Latin))
docs(website): new translations

* New translations reverse-proxy.md (Serbian (Latin))
docs(website): new translations

* New translations auth.md (Serbian (Latin))
docs(website): new translations

* New translations server.md (Serbian (Latin))
docs(website): new translations

* New translations ssl.md (Serbian (Latin))
docs(website): new translations

* New translations test.md (Serbian (Latin))
docs(website): new translations

* New translations uplinks.md (Serbian (Latin))
docs(website): new translations

* New translations use-cases.md (Serbian (Latin))
docs(website): new translations

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

* New translations windows.md (Serbian (Latin))
docs(website): new translations

* New translations node-api.md (Serbian (Latin))
docs(website): new translations

* New translations what-is-verdaccio.md (Serbian (Latin))
docs(website): new translations

* New translations ci.md (Serbian (Latin))
docs(website): new translations

* New translations puppet.md (Serbian (Latin))
docs(website): new translations

* New translations chef.md (Serbian (Latin))
docs(website): new translations

* New translations logo.md (Serbian (Latin))
docs(website): new translations

* New translations build.md (Serbian (Latin))
docs(website): new translations

* New translations ansible.md (Serbian (Latin))
docs(website): new translations

* New translations auth.md (Serbian (Cyrillic))
docs(website): new translations

* New translations protect-your-dependencies.md (Serbian (Cyrillic))
docs(website): new translations

* New translations build.md (Serbian (Cyrillic))
docs(website): new translations

* New translations cli.md (Serbian (Cyrillic))
docs(website): new translations

* New translations config.md (Serbian (Cyrillic))
docs(website): new translations

* New translations contributing.md (Serbian (Cyrillic))
docs(website): new translations

* New translations dev-plugins.md (Serbian (Cyrillic))
docs(website): new translations

* New translations docker.md (Serbian (Cyrillic))
docs(website): new translations

* New translations iis-server.md (Serbian (Cyrillic))
docs(website): new translations

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

* New translations kubernetes.md (Serbian (Cyrillic))
docs(website): new translations

* New translations logger.md (Serbian (Cyrillic))
docs(website): new translations

* New translations notifications.md (Serbian (Cyrillic))
docs(website): new translations

* New translations packages.md (Serbian (Cyrillic))
docs(website): new translations

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

* New translations repositories.md (Serbian (Cyrillic))
docs(website): new translations

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

* New translations reverse-proxy.md (Serbian (Cyrillic))
docs(website): new translations

* New translations server.md (Serbian (Cyrillic))
docs(website): new translations

* New translations ssl.md (Serbian (Cyrillic))
docs(website): new translations

* New translations test.md (Serbian (Cyrillic))
docs(website): new translations

* New translations uplinks.md (Serbian (Cyrillic))
docs(website): new translations

* New translations use-cases.md (Serbian (Cyrillic))
docs(website): new translations

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

* New translations windows.md (Serbian (Cyrillic))
docs(website): new translations

* New translations node-api.md (Serbian (Cyrillic))
docs(website): new translations

* New translations what-is-verdaccio.md (Serbian (Cyrillic))
docs(website): new translations

* New translations ci.md (Serbian (Cyrillic))
docs(website): new translations

* New translations puppet.md (Serbian (Cyrillic))
docs(website): new translations

* New translations chef.md (Serbian (Cyrillic))
docs(website): new translations

* New translations logo.md (Serbian (Cyrillic))
docs(website): new translations

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

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

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

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

* New translations docker.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations iis-server.md (French)
docs(website): new translations

* New translations iis-server.md (French)
docs(website): new translations

* New translations iis-server.md (French)
docs(website): new translations

* New translations iis-server.md (French)
docs(website): new translations

* New translations iis-server.md (French)
docs(website): new translations

* New translations iis-server.md (French)
docs(website): new translations

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

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

* New translations kubernetes.md (French)
docs(website): new translations

* New translations logger.md (French)
docs(website): new translations

* New translations logger.md (French)
docs(website): new translations

* New translations logger.md (French)
docs(website): new translations

* New translations logger.md (French)
docs(website): new translations

* New translations notifications.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations docker.md (French)
docs(website): new translations

* New translations notifications.md (French)
docs(website): new translations

* New translations notifications.md (French)
docs(website): new translations

* New translations notifications.md (French)
docs(website): new translations

* New translations packages.md (French)
docs(website): new translations

* New translations packages.md (French)
docs(website): new translations

* New translations packages.md (French)
docs(website): new translations

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

* New translations ansible.md (Serbian (Latin))
docs(website): new translations

* New translations ansible.md (Serbian (Latin))
docs(website): new translations

* New translations auth.md (Serbian (Latin))
docs(website): new translations

* New translations auth.md (Serbian (Latin))
docs(website): new translations

* New translations auth.md (Serbian (Latin))
docs(website): new translations

* New translations build.md (Serbian (Latin))
docs(website): new translations

* New translations chef.md (Serbian (Latin))
docs(website): new translations

* New translations cli.md (Serbian (Latin))
docs(website): new translations

* New translations ci.md (Serbian (Latin))
docs(website): new translations

* New translations cli.md (Serbian (Latin))
docs(website): new translations

* New translations uplinks.md (Serbian (Latin))
docs(website): new translations

* New translations uplinks.md (Serbian (Latin))
docs(website): new translations

* New translations uplinks.md (Serbian (Latin))
docs(website): new translations

* New translations uplinks.md (Serbian (Latin))
docs(website): new translations

* New translations packages.md (Korean)
docs(website): new translations

* New translations packages.md (Portuguese)
docs(website): new translations

* New translations packages.md (Vietnamese)
docs(website): new translations

* New translations packages.md (Italian)
docs(website): new translations

* New translations packages.md (Russian)
docs(website): new translations

* New translations packages.md (Serbian (Cyrillic))
docs(website): new translations

* New translations packages.md (Serbian (Latin))
docs(website): new translations

* New translations packages.md (Hindi)
docs(website): new translations

* New translations packages.md (French)
docs(website): new translations

* New translations packages.md (Arabic)
docs(website): new translations

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

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

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

* New translations packages.md (Polish)
docs(website): new translations

* New translations packages.md (German)
docs(website): new translations

* New translations packages.md (Japanese)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

* New translations cli.md (French)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations
2018-10-21 17:56:24 +02:00

5.8 KiB
Raw Blame History

id title
configuration Fichier de configuration

Ce fichier est le pilier de verdaccio où vous pouvez modifier le comportement par défaut, activer les plugins et étendre les fonctionnalités.

Un fichier de configuration par défaut est créé la première fois que vous exécutez verdaccio.

Configuration par défaut

La configuration par défaut a un support pour les packs portée(scoped) et permet à tout utilisateur à accéder à tous les packs, mais seuls les utilisateurs authentifiés qui peuvent publier.

storage: ./storage
auth:
  htpasswd:
    file: ./htpasswd
uplinks:
  npmjs:
    url: https://registry.npmjs.org/
packages:
  '@*/*':
    access: $all
    publish: $authenticated
    proxy: npmjs
  '**':
    proxy: npmjs
logs:
  - {type: stdout, format: pretty, level: http}

Sections

Les sections suivantes expliquent ce que signifie chaque propriété et les différentes options.

Stockage

C'est le chemin de stockage par défaut. Verdaccio est basé par défaut sur le fichier système local.

stockage: ./stockage

Plugins

C'est le chemin du répertoire des plugins. Utile pour les déploiements basées sur Docker/Kubernetes.

plugins: ./plugins

Authentification

Le paramètre d'authentification est défini ici, l'authentification par défaut est basée sur htpasswd et est intégrée. Vous pouvez modifier ce comportement via lesplugins. Pour plus d'informations sur cette section, consultez la page d'authentification .

auth:
  htpasswd:
    file: ./htpasswd
    max_users: 1000

Interface utilisateur Web

Cette propriété vous permet de modifier les fonctionnalités de l'interface utilisateur Web. Pour plus d'informations sur cette section, consultez la page de l'interface utilisateur Web .

web:
  enable: true
  title: Verdaccio
  logo: logo.png
  scope:

Uplinks est la capacité du système à récupérer des paquets à partir de registres distants lorsque ces paquets ne sont pas disponibles localement. Pour plus d'informations sur cette section, lisez uplinks page.

uplinks:
  npmjs:
    url: https://registry.npmjs.org/

Paquets

Les Paquets permettent à l'utilisateur de contrôler comment les paquets sont rendus accessibles. Pour plus d'informations sur cette section, consultez la page des paquets .

packages:
  '@*/*':
    access: $all
    publish: $authenticated
    proxy: npmjs

Paramètres avancés

Publication hors ligne

Par défaut verdaccio n'autorise pas le client à publier lorsqu'il est hors ligne, ce comportement peut être remplacé en définissant cette option Vraie.

publish:
  allow_offline: false

Since: verdaccio@2.3.6 due #223

Préfixe de l'URL

url_prefix: https://dev.company.local/verdaccio/

Depuis: verdaccio@2.3.6 due #197

Taille maximale du corps

Par défaut, la taille maximale du corps d'un document JSON est 10mb. Si vous rencontrez des erreurs telles que "entité de demande trop grande", vous pouvez augmenter cette valeur.

max_body_size: 10mb

Port découte

verdaccio sexécute par défaut dans le port 4873. La modification du port peut être faite via cli ou dans le fichier de configuration, les options suivantes sont valides.

listen:
# - localhost:4873            # default value
# - http://localhost:4873     # same thing
# - 0.0.0.0:4873              # listen on all addresses (INADDR_ANY)
# - https://example.org:4873  # if you want to use https
# - "[::1]:4873"                # ipv6
# - unix:/tmp/verdaccio.sock    # unix socket

HTTPS

Pour activer https dans verdaccio il suffit de définir le drapeau Ecoute avec le protocole https://. Pour plus dinformations sur cette section, lisez ssl page.

https:
    key: ./path/verdaccio-key.pem
    cert: ./path/verdaccio-cert.pem
    ca: ./path/verdaccio-csr.pem

Proxy

Les Proxy sont des serveurs HTTP spéciaux conçus pour transférer des données de serveurs distants vers des clients locaux.

http_proxy and https_proxy

Si vous avez un proxy sur votre réseau, vous pouvez définir un en-tête X-Forwarded-For à l'aide des propriétés suivantes.

http_proxy: http://something.local/
https_proxy: https://something.local/

no_proxy

Cette variable doit contenir une liste d'extensions de domaine séparées par des virgules pour lesquelles le proxy ne doit pas être utilisé.

no_proxy: localhost,127.0.0.1

Notifications

L'activation des notifications d'outils tiers est assez facile via des webhooks. Pour plus d'informations sur cette section, consultez la page de notification .

notify:
  method: POST
  headers: [{'Content-Type': 'application/json'}]
  endpoint: https://usagge.hipchat.com/v2/room/3729485/notification?auth_token=mySecretToken
  content: '{"color":"green","message":"New package published: * {{ name }}*","notify":true,"message_format":"text"}'

Pour plus de détails sur les paramètres de configuration, veuillez vérifier le code source .

Audit

Depuis : verdaccio@3.0.0

npm audit est une nouvelle commande émise avec npm 6.x . Verdaccio inclut un plugin middleware intégré pour gérer cette commande.

Si vous avez une nouvelle installation, elle est fournie par défaut. Sinon, vous devez ajouter les propriétés suivantes à votre fichier de configuration

middlewares:
  audit:
    enabled: true