docker安装好了vaultwarden,用docker映射的IP+端口可以正常访问vaultwarden
但配置了nginx反向代理后就不能访问了,F12如图:
1111.png
安装的是lnmp2.0
nginx中的反向代理我是设置在/usr/local/nginx/conf/vhost/下的bit.xxx.conf中
location / {
proxy_pass http://127.0.0.1:3333;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /notifications/hub {
proxy_pass http://127.0.0.1:3012;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /notifications/hub/negotiate {
proxy_pass http://127.0.0.1:3333;
}
目前我用IP+端口可以访问vaultwarden,但用lnmp创建的主机bit.xxx就不能访问了
网上搜的教程设置都不能用,想请教下各位大佬