当前位置:网站首页>NPM private server problem of peanut shell intranet penetration mapping
NPM private server problem of peanut shell intranet penetration mapping
2022-06-26 05:57:00 【omage】
The author once wrote a blog about how to build NPM Private clothes
How to use docker build npm Private clothes _omage The blog of -CSDN Blog Kung Fu in the world , Fast break not only !npm The default official server for downloading packages is npmjs:https://registry.npmjs.org/ Due to abroad and well-known reasons ,npm install Life is slow to doubt ... Fortunately, Alibaba provided the domestic Taobao image source taobao:https://registry.npm.taobao.org/ ( Ma Shoufu has made a lot of contributions ) We just need to click the local command to switch npm Package source settings npm Source npm config set registry https://registry.npm...https://blog.csdn.net/omage/article/details/117289205?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165465298516782390549972%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165465298516782390549972&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-1-117289205-null-null.nonecase&utm_term=verdaccio&spm=1018.2226.3001.4450 There is no problem accessing the intranet of the company , Later, due to the work needs of colleagues , It is necessary to solve the problem of accessing from the Internet NPM Private clothes , Use the peanut shell inner net penetration to map , After a simple configuration , Found a problem , namely verdaccio When mapping to the Internet , Some of the contents of the web pages are still referred to the intranet IP Address .
I looked for it verdaccio The solution of the official website , Adopted nginx Reverse proxy of , According to its configuration, the test failed
Reverse Proxy Setup | VerdaccioUsing a reverse proxy is a common practice. The following configurations are thehttps://verdaccio.org/docs/reverse-proxy/ Later, I thought about it myself , Changed configuration , Can run through , Now share the configuration .
server {
listen 14873;
location / {
proxy_set_header Accept-Encoding '';
proxy_pass http://192.1.1.10:4873/;
sub_filter 'http://192.1.1.10:4873' '$scheme://$http_host';
sub_filter_once off;
sub_filter_types *;
}
}Be careful :proxy_set_header Accept-Encoding ''; This is to prevent verdaccio Turn on gzip,sub_filter Cannot replace compressed web page content
边栏推荐
- How to associate wechat applet QR code to realize two code aggregation
- Easy to understand from the IDE, and then talk about the applet IDE
- Class and object learning
- Factory method pattern, abstract factory pattern
- Talk 5 wireless communication
- 家庭记账程序(第二版 加入了循环)
- Pytorch中自己所定义(修改)的模型加载所需部分预训练模型参数并冻结
- 生命原来如此脆弱
- Sql语法中循环的使用
- Vs2022 offline installation package download and activation
猜你喜欢

How to associate wechat applet QR code to realize two code aggregation

pytorch(网络模型)

Selective Search for Object Recognition 论文笔记【图片目标分割】

Spark source code analysis (I): RDD collection data - partition data allocation

421- binary tree (226. reversed binary tree, 101. symmetric binary tree, 104. maximum depth of binary tree, 222. number of nodes of complete binary tree)

原型模式,咩咩乱叫

组合模式、透明方式和安全方式

Prototype mode, Baa Baa

工厂方法模式、抽象工厂模式

REUSE_ ALV_ GRID_ Display event implementation (data_changed)
随机推荐
Lesson 4 serial port and clock
SQL Server 函数
BOM文档
The difference between overload method and override method
Redis underlying data structure
BOM document
SSH keygen specifies the path
Last flight
生命原来如此脆弱
Machine learning 07: Interpretation of PCA and its sklearn source code
Describe an experiment of Kali ARP in LAN
How to associate wechat applet QR code to realize two code aggregation
On site commissioning - final method of kb4474419 for win7 x64 installation and vs2017 flash back
numpy.log
Adapter mode
Getting started with Python
解决在win10下cmder无法使用find命令
Status mode, body can change at will
C XX management system
Detailed explanation of serial port communication principle 232, 422, 485