sonatype - 如何更改 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?
解决方案
推荐阅读
- javascript - 等效于使用 javascript 更改页面内容后的 readystatechange
- html - 为什么我的标题周围的间距不会消失?
- api - kind undefined 在这里是什么意思?我找不到此错误的任何解决方案
- python - 使用 FOR 循环使用 TensorFlow 初始化权重
- if-statement - 这个公式可以在 Google 表格中的 ARRAYFORMULA 中使用吗?
- here-api - 静态流量模式表不存在
- reactjs - Chrome 开发工具显示所有名为“State”的 useState 钩子
- ruby - 如果为假,则打破每次迭代,但在其他情况下返回真红宝石
- oracle - 在 Oracle Apex 中将 1 秒添加到最小日期
- java - Java FX 问题窗口管理器(单例)