[nginx]-nginx通过proxy_set_header转发实现免密登陆nexus

nginx 通过proxy_set_header转发实现免密登陆nexus

nginx转发nexus时 将密码带过去。实现了转发即登陆的效果 自己也是玩玩看的

nexus地址:192.168.10.204:8081/nexus

账号/密码:admin/admin123

nginx地址:192.168.10.83:80

登陆的时候 看到header里带了Basic + base64加密的密码

[nginx]-nginx通过proxy_set_header转发实现免密登陆nexus

[nginx]-nginx通过proxy_set_header转发实现免密登陆nexus

于是nginx配置文件修改转发如下 添加proxy_set_header 把header带过去

[nginx]-nginx通过proxy_set_header转发实现免密登陆nexus

无痕模式测试 通过nginx访问 可以免密登陆

[nginx]-nginx通过proxy_set_header转发实现免密登陆nexus