问题描述
我需要为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
但是它不能正常工作。
因为,返回网址包含/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?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)