Skip to content

Commit

Permalink
提交所有初始配置
Browse files Browse the repository at this point in the history
  • Loading branch information
ziok2010 committed Jan 13, 2020
1 parent 95d9fa0 commit bccde46
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 0 deletions.
106 changes: 106 additions & 0 deletions conf/config.yaml
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 },
# }
1 change: 1 addition & 0 deletions conf/htpasswd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added conf/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docker-compose.yaml
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
1 change: 1 addition & 0 deletions storage/.sinopia-db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"list":[],"secret":"5bbf47b728d5009920eb2212eb9f5ed0b4b133d521afcd8827d882ee3cf7d02a"}

0 comments on commit bccde46

Please sign in to comment.