请教各位18cm大佬lnmp+vaultwarden反向代理设置

查看 50|回复 2
作者:loring   
请教一下18cm大佬:
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就不能访问了
网上搜的教程设置都不能用,想请教下各位大佬

大佬, 就不能, 端口

李某   
https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples

BGP   
   
  location / {
    proxy_pass http://127.0.0.1:8000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }
  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:8000; }
ROCKET_PORT端口改下
您需要登录后才可以回帖 登录 | 立即注册

返回顶部