2018-01-08 20:45:03 +01:00
|
|
|
|
---
|
New Crowdin translations (#995)
* New translations logger.md (Japanese)
docs(website): new translations
* New translations logger.md (French)
docs(website): new translations
* New translations logger.md (German)
docs(website): new translations
* New translations kubernetes.md (Russian)
docs(website): new translations
* New translations kubernetes.md (Russian)
docs(website): new translations
* New translations kubernetes.md (Russian)
docs(website): new translations
* New translations en.json (German)
docs(website): new translations
* New translations en.json (German)
docs(website): new translations
* New translations windows.md (German)
docs(website): new translations
* New translations en.json (German)
docs(website): new translations
* New translations ansible.md (Portuguese, Brazilian)
docs(website): new translations
* New translations auth.md (Portuguese, Brazilian)
docs(website): new translations
* New translations en.json (Portuguese, Brazilian)
docs(website): new translations
* New translations cli.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 docker.md (Vietnamese)
docs(website): new translations
* New translations build.md (Portuguese, Brazilian)
docs(website): new translations
* New translations ci.md (Portuguese, Brazilian)
docs(website): new translations
* New translations chef.md (Portuguese, Brazilian)
docs(website): new translations
* New translations auth.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations ci.md (Portuguese, Brazilian)
docs(website): new translations
* New translations ansible.md (Italian)
docs(website): new translations
* New translations ansible.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations chef.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations chef.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.md (Spanish)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Korean)
docs(website): new translations
* New translations config.md (Vietnamese)
docs(website): new translations
* New translations config.md (Hindi)
docs(website): new translations
* New translations config.md (Portuguese)
docs(website): new translations
* New translations config.md (Russian)
docs(website): new translations
* New translations config.md (Spanish)
docs(website): new translations
* New translations config.md (Arabic)
docs(website): new translations
* New translations config.md (Chinese Simplified)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Japanese)
docs(website): new translations
* New translations config.md (Polish)
docs(website): new translations
* New translations config.md (French)
docs(website): new translations
* New translations config.md (German)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.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 contributing.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations chef.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations iis-server.md (Vietnamese)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations docker.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations docker.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations config.md (Spanish)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.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 use-cases.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.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 test.md (Italian)
docs(website): new translations
* New translations ssl.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 ssl.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Chinese Simplified)
docs(website): new translations
* New translations web.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations config.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Chinese Simplified)
docs(website): new translations
* New translations web.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations contributing.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Chinese Simplified)
docs(website): new translations
* New translations install.md (Chinese Simplified)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations install.md (Chinese Simplified)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations repositories.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.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 protect-your-dependencies.md (Italian)
docs(website): new translations
* New translations logo.md (Chinese Simplified)
docs(website): new translations
* New translations en.json (Chinese Simplified)
docs(website): new translations
* New translations logo.md (Chinese Simplified)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations ssl.md (Italian)
docs(website): new translations
* New translations ssl.md (Italian)
docs(website): new translations
* New translations repositories.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations plugins.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 test.md (Italian)
docs(website): new translations
2018-09-17 18:43:29 +02:00
|
|
|
|
id: configuration
|
2018-07-06 07:11:59 +02:00
|
|
|
|
title: "配置文件"
|
2018-01-08 20:45:03 +01:00
|
|
|
|
---
|
|
|
|
|
此文件是 Verdaccio 的重要部分, 您可以在其中修改默认行为, 启用插件并扩展功能。
|
|
|
|
|
|
|
|
|
|
一个默认的配置文件已经在您首次运行 ` Verdaccio ` 时创建。
|
|
|
|
|
|
|
|
|
|
## 默认配置
|
|
|
|
|
|
|
|
|
|
默认配置支持 ** 私有(scoped) ** 包, 并允许匿名访问非私有包, 但只有 ** 已登陆用户才能发布包**。
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
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}
|
|
|
|
|
```
|
|
|
|
|
|
2018-08-01 22:25:11 +02:00
|
|
|
|
## 章节
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-08-01 22:25:11 +02:00
|
|
|
|
以下各章节解释了每个属性的含义以及不同的选项。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
### 存储
|
|
|
|
|
|
|
|
|
|
是默认的存储方式。** Verdaccio 默认使用内置本地文件模式存储 **。
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
storage: ./storage
|
|
|
|
|
```
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 插件
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
是插件目录的位置。对Docker/Kubernetes 基础上的配置非常有用。
|
2018-07-21 16:34:10 +02:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
plugins: ./plugins
|
|
|
|
|
```
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 认证
|
2018-07-21 16:34:10 +02:00
|
|
|
|
|
2018-08-01 22:25:11 +02:00
|
|
|
|
认证设置在这里完成,默认的授权是基于`htpasswd` 并且是内置的。 您可以通过[plugins](plugins.md)来修改此行为。 有关更多本章节的详细信息,请阅读[auth页面](auth.md)。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
auth:
|
|
|
|
|
htpasswd:
|
|
|
|
|
file: ./htpasswd
|
|
|
|
|
max_users: 1000
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Web UI
|
|
|
|
|
|
New Crowdin translations (#995)
* New translations logger.md (Japanese)
docs(website): new translations
* New translations logger.md (French)
docs(website): new translations
* New translations logger.md (German)
docs(website): new translations
* New translations kubernetes.md (Russian)
docs(website): new translations
* New translations kubernetes.md (Russian)
docs(website): new translations
* New translations kubernetes.md (Russian)
docs(website): new translations
* New translations en.json (German)
docs(website): new translations
* New translations en.json (German)
docs(website): new translations
* New translations windows.md (German)
docs(website): new translations
* New translations en.json (German)
docs(website): new translations
* New translations ansible.md (Portuguese, Brazilian)
docs(website): new translations
* New translations auth.md (Portuguese, Brazilian)
docs(website): new translations
* New translations en.json (Portuguese, Brazilian)
docs(website): new translations
* New translations cli.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 docker.md (Vietnamese)
docs(website): new translations
* New translations build.md (Portuguese, Brazilian)
docs(website): new translations
* New translations ci.md (Portuguese, Brazilian)
docs(website): new translations
* New translations chef.md (Portuguese, Brazilian)
docs(website): new translations
* New translations auth.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations ci.md (Portuguese, Brazilian)
docs(website): new translations
* New translations ansible.md (Italian)
docs(website): new translations
* New translations ansible.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations chef.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations chef.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.md (Spanish)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations build.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Korean)
docs(website): new translations
* New translations config.md (Vietnamese)
docs(website): new translations
* New translations config.md (Hindi)
docs(website): new translations
* New translations config.md (Portuguese)
docs(website): new translations
* New translations config.md (Russian)
docs(website): new translations
* New translations config.md (Spanish)
docs(website): new translations
* New translations config.md (Arabic)
docs(website): new translations
* New translations config.md (Chinese Simplified)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Japanese)
docs(website): new translations
* New translations config.md (Polish)
docs(website): new translations
* New translations config.md (French)
docs(website): new translations
* New translations config.md (German)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations contributing.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 contributing.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations chef.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations iis-server.md (Vietnamese)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations docker.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations docker.md (Portuguese, Brazilian)
docs(website): new translations
* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations en.json (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations config.md (Spanish)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations use-cases.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 use-cases.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations web.md (Italian)
docs(website): new translations
* New translations what-is-verdaccio.md (Italian)
docs(website): new translations
* New translations use-cases.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.md (Italian)
docs(website): new translations
* New translations test.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 test.md (Italian)
docs(website): new translations
* New translations ssl.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 ssl.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations auth.md (Italian)
docs(website): new translations
* New translations cli.md (Italian)
docs(website): new translations
* New translations ci.md (Italian)
docs(website): new translations
* New translations config.md (Italian)
docs(website): new translations
* New translations config.md (Chinese Simplified)
docs(website): new translations
* New translations web.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations config.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Chinese Simplified)
docs(website): new translations
* New translations web.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations contributing.md (Chinese Simplified)
docs(website): new translations
* New translations contributing.md (Chinese Simplified)
docs(website): new translations
* New translations install.md (Chinese Simplified)
docs(website): new translations
* New translations windows.md (Italian)
docs(website): new translations
* New translations install.md (Chinese Simplified)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations repositories.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.md (Italian)
docs(website): new translations
* New translations protect-your-dependencies.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 protect-your-dependencies.md (Italian)
docs(website): new translations
* New translations logo.md (Chinese Simplified)
docs(website): new translations
* New translations en.json (Chinese Simplified)
docs(website): new translations
* New translations logo.md (Chinese Simplified)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations reverse-proxy.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations plugins.md (Italian)
docs(website): new translations
* New translations uplinks.md (Italian)
docs(website): new translations
* New translations ssl.md (Italian)
docs(website): new translations
* New translations ssl.md (Italian)
docs(website): new translations
* New translations repositories.md (Italian)
docs(website): new translations
* New translations server.md (Italian)
docs(website): new translations
* New translations puppet.md (Italian)
docs(website): new translations
* New translations plugins.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 test.md (Italian)
docs(website): new translations
2018-09-17 18:43:29 +02:00
|
|
|
|
这个选项允许你定制 Web UI 的外观,如需了解更多信息请参阅 [Web UI 页面](web.md)
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
web:
|
|
|
|
|
enable: true
|
|
|
|
|
title: Verdaccio
|
|
|
|
|
logo: logo.png
|
2018-08-01 22:25:11 +02:00
|
|
|
|
scope:
|
2018-01-08 20:45:03 +01:00
|
|
|
|
```
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 上行链路
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-08-01 22:25:11 +02:00
|
|
|
|
当包不在本地的时候,上行链路可以让系统从远程的registry里获取这些包。 有关更多本章节的详细信息,请阅读[上行链路页面](uplinks.md)。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
uplinks:
|
|
|
|
|
npmjs:
|
|
|
|
|
url: https://registry.npmjs.org/
|
|
|
|
|
```
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 包
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
包让用户控制访问包的权限。有关更多本模块的详细信息,请阅读[包页面](packages.md)。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
packages:
|
|
|
|
|
'@*/*':
|
|
|
|
|
access: $all
|
|
|
|
|
publish: $authenticated
|
|
|
|
|
proxy: npmjs
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 高级设置
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 脱线发布
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
`verdaccio`默认不允许客户脱线的时候发布,可以把这设置为*true*来覆盖此行为。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
publish:
|
|
|
|
|
allow_offline: false
|
|
|
|
|
```
|
|
|
|
|
|
2018-01-21 00:04:36 +01:00
|
|
|
|
<small>Since: <code>verdaccio@2.3.6</code> due <a href="https://github.com/verdaccio/verdaccio/pull/223">#223</a></small>
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### URL 前缀
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
url_prefix: https://dev.company.local/verdaccio/
|
|
|
|
|
```
|
|
|
|
|
|
2018-01-21 00:04:36 +01:00
|
|
|
|
Since: `verdaccio@2.3.6` due [#197](https://github.com/verdaccio/verdaccio/pull/197)
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 最大正文大小
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
默认的最大JSON 文件正文大小为`10mb`, 如果遇到`"request entity too large"` 的错误提示,您可以增大此数值。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
2018-05-30 15:46:53 +02:00
|
|
|
|
max_body_size: 10mb
|
2018-01-08 20:45:03 +01:00
|
|
|
|
```
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 监听端口
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
`verdaccio` 默认在`4873`端口运行。可以通过[cli](cli.md) 或者在配置文件里更改端口,以下选项有效。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
listen:
|
New Crowdin translations (#479)
* New translations contributing.md (Chinese Simplified)
* New translations contributing.md (Chinese Traditional)
* New translations contributing.md (Chinese Traditional, Hong Kong)
* New translations contributing.md (Portuguese, Brazilian)
* New translations contributing.md (Spanish)
* New translations contributing.md (Urdu (Pakistan))
* New translations docker.md (Chinese Simplified)
* New translations docker.md (Chinese Traditional)
* New translations docker.md (Chinese Traditional, Hong Kong)
* New translations docker.md (Portuguese, Brazilian)
* New translations docker.md (Spanish)
* New translations docker.md (Urdu (Pakistan))
* New translations node-api.md (Chinese Simplified)
* New translations node-api.md (Chinese Traditional)
* New translations node-api.md (Chinese Traditional, Hong Kong)
* New translations node-api.md (Portuguese, Brazilian)
* New translations node-api.md (Spanish)
* New translations node-api.md (Urdu (Pakistan))
* New translations uplinks.md (Chinese Traditional)
* New translations uplinks.md (Chinese Traditional, Hong Kong)
* New translations uplinks.md (Portuguese, Brazilian)
* New translations uplinks.md (Spanish)
* New translations uplinks.md (Urdu (Pakistan))
* New translations uplinks.md (Chinese Simplified)
* New translations config.md (Chinese Simplified)
* New translations config.md (Spanish)
* New translations config.md (Urdu (Pakistan))
* New translations config.md (Chinese Traditional, Hong Kong)
* New translations config.md (Portuguese, Brazilian)
* New translations config.md (Chinese Traditional)
2018-01-20 09:09:16 +01:00
|
|
|
|
# - localhost:4873 # default value
|
|
|
|
|
# - http://localhost:4873 # same thing
|
|
|
|
|
# - 0.0.0.0:4873 # listen on all addresses (INADDR_ANY)
|
2018-01-08 20:45:03 +01:00
|
|
|
|
# - https://example.org:4873 # if you want to use https
|
New Crowdin translations (#479)
* New translations contributing.md (Chinese Simplified)
* New translations contributing.md (Chinese Traditional)
* New translations contributing.md (Chinese Traditional, Hong Kong)
* New translations contributing.md (Portuguese, Brazilian)
* New translations contributing.md (Spanish)
* New translations contributing.md (Urdu (Pakistan))
* New translations docker.md (Chinese Simplified)
* New translations docker.md (Chinese Traditional)
* New translations docker.md (Chinese Traditional, Hong Kong)
* New translations docker.md (Portuguese, Brazilian)
* New translations docker.md (Spanish)
* New translations docker.md (Urdu (Pakistan))
* New translations node-api.md (Chinese Simplified)
* New translations node-api.md (Chinese Traditional)
* New translations node-api.md (Chinese Traditional, Hong Kong)
* New translations node-api.md (Portuguese, Brazilian)
* New translations node-api.md (Spanish)
* New translations node-api.md (Urdu (Pakistan))
* New translations uplinks.md (Chinese Traditional)
* New translations uplinks.md (Chinese Traditional, Hong Kong)
* New translations uplinks.md (Portuguese, Brazilian)
* New translations uplinks.md (Spanish)
* New translations uplinks.md (Urdu (Pakistan))
* New translations uplinks.md (Chinese Simplified)
* New translations config.md (Chinese Simplified)
* New translations config.md (Spanish)
* New translations config.md (Urdu (Pakistan))
* New translations config.md (Chinese Traditional, Hong Kong)
* New translations config.md (Portuguese, Brazilian)
* New translations config.md (Chinese Traditional)
2018-01-20 09:09:16 +01:00
|
|
|
|
# - "[::1]:4873" # ipv6
|
2018-01-08 20:45:03 +01:00
|
|
|
|
# - unix:/tmp/verdaccio.sock # unix socket
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### HTTPS
|
|
|
|
|
|
2018-08-01 22:25:11 +02:00
|
|
|
|
要在 `verdaccio`启用`https`,只要用 *https://*协议来设置`listen` 标志。 有关更多此章节的详细信息,请阅读 [ssl page](ssl.md)。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
https:
|
2018-02-16 19:32:53 +01:00
|
|
|
|
key: ./path/verdaccio-key.pem
|
|
|
|
|
cert: ./path/verdaccio-cert.pem
|
|
|
|
|
ca: ./path/verdaccio-csr.pem
|
2018-01-08 20:45:03 +01:00
|
|
|
|
```
|
|
|
|
|
|
2018-07-21 16:34:10 +02:00
|
|
|
|
### Proxy
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
Proxy是专门把数据从远程服务器传输到本地客户端的HTTP 服务器。
|
2018-02-11 09:58:10 +01:00
|
|
|
|
|
|
|
|
|
#### http_proxy and https_proxy
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
如果您的网络里有proxy,您可以用以下属性设置`X-Forwarded-For` 页眉。
|
2018-02-11 09:58:10 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
http_proxy: http://something.local/
|
|
|
|
|
https_proxy: https://something.local/
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### no_proxy
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
此变量应该包含一个proxy 本不应该用到的以逗号分开的域名扩展列表。
|
2018-02-11 09:58:10 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
2018-07-21 16:34:10 +02:00
|
|
|
|
no_proxy: localhost,127.0.0.1
|
2018-02-11 09:58:10 +01:00
|
|
|
|
```
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 通知
|
2018-02-11 09:58:10 +01:00
|
|
|
|
|
2018-08-01 22:25:11 +02:00
|
|
|
|
通过web hooks来启用第三方工具通知是很容易的。有关更多此章节的详细信息,请阅读 [notifications page(通知页面)](notifications.md)。
|
2018-01-08 20:45:03 +01:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
notify:
|
|
|
|
|
method: POST
|
|
|
|
|
headers: [{'Content-Type': 'application/json'}]
|
|
|
|
|
endpoint: https://usagge.hipchat.com/v2/room/3729485/notification?auth_token=mySecretToken
|
2018-02-11 09:58:10 +01:00
|
|
|
|
content: '{"color":"green","message":"New package published: * {{ name }}*","notify":true,"message_format":"text"}'
|
2018-01-21 00:04:36 +01:00
|
|
|
|
```
|
|
|
|
|
|
2018-07-06 07:11:59 +02:00
|
|
|
|
> 有关更多配置设置的详细信息,请[核对源代码](https://github.com/verdaccio/verdaccio/tree/master/conf)。
|
2018-05-31 10:55:20 +02:00
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
### 审核
|
2018-05-31 10:55:20 +02:00
|
|
|
|
|
2018-06-07 17:19:13 +02:00
|
|
|
|
<small>Since: <code>verdaccio@3.0.0</code></small>
|
|
|
|
|
|
2018-07-30 07:17:41 +02:00
|
|
|
|
`npm audit` 是和[npm 6.x](https://github.com/npm/npm/releases/tag/v6.1.0)一起发布的新命令。Verdaccio 包含一个内置的middleware plugin(中间插件)来处理此命令。
|
2018-05-31 10:55:20 +02:00
|
|
|
|
|
2018-07-06 07:11:59 +02:00
|
|
|
|
> 新安装采用默认版本,但是您可以添加以下代码段到配置文件中
|
2018-05-31 10:55:20 +02:00
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
middlewares:
|
|
|
|
|
audit:
|
|
|
|
|
enabled: true
|
|
|
|
|
```
|