org/docs/configuration#max-body-size # max_body_size: 10mb # https://verdaccio.org/docs/configuration#listen-port # listen: # - localhost:4873 # 默认值 # - http://localhost:4873 # 相同 # - 0.0.0.0:4873 # 监听所有地址 (INADDR_ANY) # - https://example.org:4873 # 如果您想使用 ...
server { #SSL 访问端口号为 443 listen 443 ssl http2; #填写绑定证书的域名 server_name npm.mwjz.live; #上传大小限制 client_max_body_size 10M; #日志 error_log /var/log/nginx/npm/error.log; access_log /var/log/nginx/npm/access.log; #证书文件 ssl_certificate /etc/nginx/conf.d/ssl/np...
首先是修改npm 的包大小限制为50mb,在控制台运行:npm config set max_body_size 50mb --registryyourdomain。 第二步修改nginx的请求大小限制,在上文的代理配置中的client_max_body_size 50M;配置就是修改你代理的请求体大小为50mb。 最后一步是修改Verdaccio的配置文件,可以在Configuration File | Verdaccio文档...
client_max_body_size 20m; location / { proxy_pass http://127.0.0.1:4873/; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } } 七、使用 web访问域名即可,可以查看搜索上传的包 npm操作: # 添加私有仓库地...
当出现下面问题错误的时候,说明你的npm包太大,超过限制 413 Payload Too Large - PUT http://xxx- request entity too large 1 max_body_size: 100mb 使用pm2启动verdaccio 1 2 3 4 5 6 7 npm i -g pm2 pm2 start `whichverdaccio` pm2 startup pm2 save...
max_body_size: 1000mb verdaccio.service [Unit] Description=Verdaccio lightweight npm proxy registry [Service] Type=simple Restart=on-failure User=abby ExecStart=/home/abby/.nvm/versions/node/v13.0.1/lib/node_modules/verdaccio/bin/verdaccio --config /etc/verdaccio/config.yaml ...
server{#SSL 访问端口号为 443listen443sslhttp2;#填写绑定证书的域名server_namenpm.mwjz.live;#上传大小限制client_max_body_size10M;#日志error_log/var/log/nginx/npm/error.log;access_log/var/log/nginx/npm/access.log;#证书文件ssl_certificate/etc/nginx/conf.d/ssl/npm/npm.mwjz.live_bundle.crt;...
-1uplinks:npmjs:url:https://registry.npmjs.org/packages:'@*/*':access:$authenticatedpublish:$authenticatedproxy:npmjs'**':access:$authenticatedpublish:$authenticatedproxy:npmjsweb:enable:truetitle:前端私有库login:truelisten:0.0.0.0:4873max_body_size:100mblog:{type:stdout,format:pretty,level:...
client_max_body_size 10M;#日志 error_log/var/log/nginx/npm/error.log;access_log/var/log/nginx/npm/access.log;#证书文件 ssl_certificate/etc/nginx/conf.d/ssl/npm/npm.mwjz.live_bundle.crt;#证书密钥文件 ssl_certificate_key/etc/nginx/conf.d/ssl/npm...
max_body_size?: string; notifications?: Notifications; notify?: Notifications | Notifications[]; middlewares?: any; filters?: any; url_prefix?: string; server?: ServerSettingsConf; flags?: FlagsConfig; // @deprecated use flags instead experiments?: FlagsConfig; userRateLimit?: RateLimit; //...