-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
version: "3.1" | ||
|
||
# | ||
# This is the config file used for the docker images. | ||
# It allows all users to do anything, so don't use it on production systems. | ||
# | ||
# Do not configure host and port under `listen` in this file | ||
# as it will be ignored when using docker. | ||
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration | ||
# | ||
# Look here for more config file examples: | ||
# https://github.com/verdaccio/verdaccio/tree/master/conf | ||
# | ||
|
||
# path to a directory with all packages | ||
storage: /verdaccio/storage | ||
# path to a directory with plugins to include | ||
plugins: /verdaccio/plugins | ||
|
||
web: | ||
# WebUI is enabled as default, if you want disable it, just uncomment this line | ||
#enable: false | ||
title: TZFE-NPM-REGISTRY | ||
scope: "@tzfe" | ||
logo: /verdaccio/conf/logo.png | ||
primary_color: "#F56040" | ||
# comment out to disable gravatar support | ||
# gravatar: false | ||
# by default packages are ordercer ascendant (asc|desc) | ||
# sort_packages: asc | ||
|
||
auth: | ||
htpasswd: | ||
file: /verdaccio/conf/htpasswd | ||
# Maximum amount of users allowed to register, defaults to "+inf". | ||
# You can set this to -1 to disable registration. | ||
#max_users: 1000 | ||
security: | ||
api: | ||
jwt: | ||
sign: | ||
expiresIn: 60d | ||
notBefore: 1 | ||
web: | ||
sign: | ||
expiresIn: 7d | ||
|
||
# a list of other known repositories we can talk to | ||
uplinks: | ||
npmjs: | ||
url: https://registry.npmjs.org/ | ||
cache: false | ||
yarnjs: | ||
url: https://registry.yarnpkg.com/ | ||
cache: false | ||
cnpmjs: | ||
url: https://registry.npm.taobao.org/ | ||
cache: false | ||
|
||
packages: | ||
"@*/*": | ||
# scoped packages | ||
access: $all | ||
publish: $authenticated | ||
unpublish: $authenticated | ||
proxy: cnpmjs | ||
|
||
# 内网访问,无需认证 | ||
"@tzfe/*": | ||
# scoped packages | ||
access: $all | ||
publish: $all | ||
unpublish: $all | ||
|
||
"**": | ||
# allow all users (including non-authenticated users) to read and | ||
# publish all packages | ||
# | ||
# you can specify usernames/groupnames (depending on your auth plugin) | ||
# and three keywords: "$all", "$anonymous", "$authenticated" | ||
access: $all | ||
|
||
# allow all known users to publish packages | ||
# (anyone can register by default, remember?) | ||
publish: $authenticated | ||
unpublish: $authenticated | ||
|
||
# if package is not available locally, proxy requests to 'npmjs' registry | ||
proxy: cnpmjs | ||
|
||
# To use `npm audit` uncomment the following section | ||
middlewares: | ||
audit: | ||
enabled: true | ||
|
||
# log settings | ||
logs: | ||
- { type: stdout, format: pretty, level: trace } | ||
# { type: file, path: /verdaccio/logs/verdaccio.log, level: info } | ||
# - { | ||
# type: rotating-file, | ||
# format: json, | ||
# path: /verdaccio/logs/http.jsonl, | ||
# level: http, | ||
# options: { period: 1d, count: 30 }, | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: "3.1" | ||
services: | ||
verdaccio: | ||
image: verdaccio/verdaccio | ||
container_name: verdaccio | ||
networks: | ||
- verdaccio-network | ||
environment: | ||
- VERDACCIO_PORT=4873 | ||
ports: | ||
- "4873:4873" | ||
volumes: | ||
- "./storage:/verdaccio/storage" | ||
- "./conf:/verdaccio/conf" | ||
- "./plugins:/verdaccio/plugins" | ||
- "./logs:/verdaccio/logs" | ||
restart: always | ||
volumes: | ||
verdaccio: | ||
driver: local | ||
networks: | ||
verdaccio-network: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"list":[],"secret":"5bbf47b728d5009920eb2212eb9f5ed0b4b133d521afcd8827d882ee3cf7d02a"} |