首页 > 解决方案 > 如何更改 Nexus 3 存储库基本 URL?

问题描述

我需要为 Nexus Repository Manager 3 设置多个 dns。

我尝试设置 nginx 进行 url 重写,如下所示

https://npm.example.me/$1 -> http://internal-nxrm-dns/repository/npm-proxy/$1
https://nxrm.example.me/$1 -> http://internal-nxrm-dns/$1

但它不能正常工作。

因为,包含返回 url/repository/npm-proxy

curl https://npm.example.me/hello

"dist": {
    "integrity": "sha512-rkl8eXJVSGPHzLjzgLrf+tnexnewceyeF2fbP4Bv7839koHHtUy/YgG3hiY9+cuztGqGESGJStbPxF3EBg1GFA==",
    "shasum": "31fb25701fcfdf590daa27d875fe372ff3765898",
    "tarball": "https://npm.example.me/repository/npm-proxy/hello/-/hello-0.3.2.tgz"
  },

如何更改 npm 存储库的基本前缀 url?

标签: sonatypenexus3

解决方案


推荐阅读