Bad gateway using nginx to access vaultwarden


Recommended Posts

I have an Unraid NAS for a couple of months now. I do not want it to be accessible from the outside to minimize the risk of being hacked

Among other things I installed Vaultwarden in a docker container and that#s when my problems started vaultwarden needs https, and to enable this you need a reverse proxy. So I installed Nginx and configured it to get a let's encrypt certificate. For that the NAS needs to be visible from outside.

 

I looked into creating my own CA and SSL certificates and ran into one problem after another. I think now I amat a point where I almost figured it out but I hit a wall.

 

So I created a CA and a certificate, that has all my subdomains in the SAN entry.

 

I installed the certificate chain on the Unraid srever and also on my clients so now when I access the Unraid GUI the connection is secure.

 

I also added the certificate to Nginx and configured the connection for vaultwarden to use it.

 

Nginx is running on 192.168.0.84

Vaultwarden on 192.168.0.82:4545

 

the DNS (using pihole) entry vaultwarden.home points to 192.168.0.84

 

When I now access the URL https://vaultwarden.home I get the error bad gateway.

 

I have no idea why this is not working. When I access vaultwarden using http://192.168.0.82:4545

 

I hope someone can help me or point me in the right direction.

Cheers,

Mav

Edited by geefle
Link to comment
  • geefle changed the title to Bad gateway using nginx to access vaultwarden

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.