@@ -82,6 +82,9 @@ CNPMCORE_LOG_DIR=/var/log/cnpmcore
8282
8383``` bash
8484CNPMCORE_CONFIG_REGISTRY=https://your-registry.com
85+ # 从中国镜像获取数据
86+ CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com
87+ CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true
8588```
8689
8790### 时区
@@ -100,6 +103,8 @@ TZ=Asia/Shanghai
100103module .exports = {
101104 cnpmcore: {
102105 registry: ' https://your-registry.com' ,
106+ sourceRegistry: ' https://registry.npmmirror.com' ,
107+ sourceRegistryIsCNpm: true ,
103108 enableWebAuthn: true ,
104109 },
105110 orm: {
@@ -151,6 +156,8 @@ docker run -p 7001:7001 -it --rm \
151156``` bash
152157docker run -p 7001:7001 -it --rm \
153158 -e CNPMCORE_CONFIG_REGISTRY=https://your-registry.com \
159+ -e CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com \
160+ -e CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true \
154161 -e CNPMCORE_DATABASE_TYPE=MySQL \
155162 -e CNPMCORE_DATABASE_NAME=cnpmcore \
156163 -e CNPMCORE_DATABASE_HOST=127.0.0.1 \
@@ -177,6 +184,8 @@ docker run -p 7001:7001 -it --rm \
177184``` bash
178185docker run -p 7001:7001 -it --rm \
179186 -e CNPMCORE_CONFIG_REGISTRY=https://your-registry.com \
187+ -e CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com \
188+ -e CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true \
180189 -e CNPMCORE_DATABASE_TYPE=PostgreSQL \
181190 -e CNPMCORE_DATABASE_NAME=cnpmcore \
182191 -e CNPMCORE_DATABASE_HOST=127.0.0.1 \
0 commit comments