F5F Stay Refreshed Hardware Desktop Install NGINX on Unraid using a self-signed certificate for private use only.

Install NGINX on Unraid using a self-signed certificate for private use only.

Install NGINX on Unraid using a self-signed certificate for private use only.

S
snoozebaseball
Junior Member
41
11-19-2016, 07:48 AM
#1
Hi, I've been using an Unraid NAS for a few months now. I want to keep it secure by not exposing it publicly. To reduce risks, I set up Vaultwarden inside a Docker container and needed a reverse proxy. I installed Nginx and configured it to obtain an Let's Encrypt certificate. For this setup, the NAS had to be accessible externally. I explored generating my own CA and SSL certificates but ran into several issues. I finally created a CA with all my subdomains included in the SAN field. I added the certificate chain to both the Unraid server and my clients, ensuring secure connections when accessing the Unraid GUI. I also integrated the certificate into Nginx and set up Vaultwarden to use it. Nginx is running at 192.168.0.84, Vaultwarden at 192.168.0.82:4545, and the DNS points correctly. However, when I try to reach vaultwarden.home via https://vaultwarden.home, I get a "bad gateway" error. I'm unsure why this happens and need guidance on resolving it. Cheers, Mav
S
snoozebaseball
11-19-2016, 07:48 AM #1

Hi, I've been using an Unraid NAS for a few months now. I want to keep it secure by not exposing it publicly. To reduce risks, I set up Vaultwarden inside a Docker container and needed a reverse proxy. I installed Nginx and configured it to obtain an Let's Encrypt certificate. For this setup, the NAS had to be accessible externally. I explored generating my own CA and SSL certificates but ran into several issues. I finally created a CA with all my subdomains included in the SAN field. I added the certificate chain to both the Unraid server and my clients, ensuring secure connections when accessing the Unraid GUI. I also integrated the certificate into Nginx and set up Vaultwarden to use it. Nginx is running at 192.168.0.84, Vaultwarden at 192.168.0.82:4545, and the DNS points correctly. However, when I try to reach vaultwarden.home via https://vaultwarden.home, I get a "bad gateway" error. I'm unsure why this happens and need guidance on resolving it. Cheers, Mav