mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-17 07:45:52 +01:00
33b1d317e9
* 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 * New translations logger.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 iis-server.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 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 plugins.md (French) docs(website): new translations
103 lines
4.8 KiB
Markdown
103 lines
4.8 KiB
Markdown
---
|
||
id: iss-server
|
||
title: "Installation sur le serveur IIS"
|
||
---
|
||
Ces instructions ont été écrites pour le serveur Windows 2012, IIS 8, [Node.js 0.12.3](https://nodejs.org/), [iisnode 0.2.16](https://github.com/tjanczuk/iisnode) et [verdaccio 2.1.0](https://github.com/verdaccio/verdaccio).
|
||
|
||
- Installez IIS et [iisnode](https://github.com/tjanczuk/iisnode). Assurez-vous d'installer les conditions préalables (module de réécriture d'URL & nœud) comme expliqué dans les instructions pour iisnode.
|
||
- Créez un nouveau dossier dans Explorer où vous souhaitez héberger Verdaccio. Par exemple `C:\verdaccio`. Sauvgarder [package.json](#packagejson), [start.js](#startjs) et [web.config](#webconfig) dans ce fichier.
|
||
- Créez un nouveau site sur Internet Information Services Manager. Vous pouvez l’appeler comme vous voulez. Je l’appellerai verdaccio dans ces [instructions](http://www.iis.net/learn/manage/configuring-security/application-pool-identities). Spécifiez le chemin vers où vous avez enregistré les fichiers et un numéro de port.
|
||
- Retournez vers Explorer et autorisez l'utilisateur exécutant le groupe d'applications à pouvoir modifier le dossier nouvellement créé. Si vous avez nommé le nouveau site verdaccio et que vous n'avez pas modifié le groupe d'applications, cela fonctionne à l'arrière plan d'une ApplicationPoolIdentity et vous devez autoriser l'utilisateur à modifier IIS AppPool\verdaccio. Voir les instructions si vous avez besoin d'aide. (Si vous le souhaitez, vous pouvez restreindre l'accès ultérieurement, de sorte que vous ne disposiez que des autorisations de modification sur iisnode et verdaccio/storage)
|
||
- Lancez une invite de commande et lancez celles ci-dessous pour télécharger verdaccio:
|
||
|
||
cd c:\verdaccio
|
||
npm install
|
||
|
||
|
||
- Assurez-vous de disposer d'une règle entrante acceptant le trafic TCP sur le port du pare-feu Windows
|
||
- C'est ça! Maintenant, vous pouvez parcourir l'hôte et le port que vous avez spécifiés
|
||
|
||
Je voulais que `verdaccio` soit le site par défaut sur IIS, j'ai donc pris les mesures suivantes:
|
||
|
||
- Je me suis assuré que le fichier .nmprc dans `c:\users{yourname}` avait le registre configuré sur `"registry=http://localhost/"`
|
||
- J'ai arrêté le "site Web par défaut" et n'ai démarré que le site "verdaccio" sur IIS
|
||
- J'ai établi des connexions avec "http", l'adresse Ip "All Unassigned" sur le port 80, permettre tout avertissement ou invite
|
||
|
||
Ces instructions sont basées sur [Host Sinopia in IIS on Windows](https://gist.github.com/HCanber/4dd8409f79991a09ac75). J'ai dû faire un petit ajustement de la configuration Web, comme vous pouvez le voir ci-dessous, mais vous pouvez trouver l'original à partir du lien mentionné qui fonctionne le mieux
|
||
|
||
Un fichier de configuration par défaut sera créé `c:\verdaccio\verdaccio\config.yaml`
|
||
|
||
### package.json
|
||
|
||
```json
|
||
{
|
||
"name": "iisnode-verdaccio",
|
||
"version": "1.0.0",
|
||
"description": "Hosts verdaccio in iisnode",
|
||
"main": "start.js",
|
||
"dependencies": {
|
||
"verdaccio": "^2.1.0"
|
||
}
|
||
}
|
||
```
|
||
|
||
### start.js
|
||
|
||
```bash
|
||
process.argv.push('-l', 'unix:' + process.env.PORT);
|
||
require('./node_modules/verdaccio/src/lib/cli.js');
|
||
```
|
||
|
||
### web.config
|
||
|
||
```xml
|
||
<configuration>
|
||
<system.webServer>
|
||
<modules>
|
||
<remove name="WebDAVModule" />
|
||
</modules>
|
||
|
||
<!-- indicates that the start.js file is a node.js application
|
||
to be handled by the iisnode module -->
|
||
<handlers>
|
||
<remove name="WebDAV" />
|
||
<add name="iisnode" path="start.js" verb="*" modules="iisnode" resourceType="Unspecified" requireAccess="Execute" />
|
||
<add name="WebDAV" path="*" verb="*" modules="WebDAVModule" resourceType="Unspecified" requireAccess="Execute" />
|
||
</handlers>
|
||
|
||
<rewrite>
|
||
<rules>
|
||
|
||
<!-- iisnode folder is where iisnode stores it's logs. These should
|
||
never be rewritten -->
|
||
<rule name="iisnode" stopProcessing="true">
|
||
<match url="iisnode*" />
|
||
<action type="None" />
|
||
</rule>
|
||
|
||
<!-- Rewrite all other urls in order for verdaccio to handle these -->
|
||
<rule name="verdaccio">
|
||
<match url="/*" />
|
||
<action type="Rewrite" url="start.js" />
|
||
</rule>
|
||
</rules>
|
||
</rewrite>
|
||
|
||
<!-- exclude node_modules directory and subdirectories from serving
|
||
by IIS since these are implementation details of node.js applications -->
|
||
<security>
|
||
<requestFiltering>
|
||
<hiddenSegments>
|
||
<add segment="node_modules" />
|
||
</hiddenSegments>
|
||
</requestFiltering>
|
||
</security>
|
||
|
||
</system.webServer>
|
||
</configuration>
|
||
```
|
||
|
||
### Dépannage
|
||
|
||
- **L'interface Web n'est pas chargée lorsqu'elle est allouée à l'hôte https puisqu'elle tente de télécharger le script sur http.**
|
||
Assurez-vous que vous avez nommé correctement `url_prefix` dans la configuration de Verdaccio. Suivez la [discussion](https://github.com/verdaccio/verdaccio/issues/622). |