How to set up an nginx reverse proxy with SSL termination in a jail

This resource was originally created by user: samuel-emrys on the TrueNAS Community Forums Archive. Please DM this account or comment in this thread to claim it.

Instructions are available here: How to set up an nginx reverse proxy with SSL termination in FreeNAS

Recently I went through the process of standing up a Bitwarden server. As this is the second service that I plan to make available externally to my LAN, I had to set up a reverse proxy. I couldn’t find any instructions that dealt with exactly what I did, so I thought this would be a good opportunity to write something that might be useful to others.

The guide essentially walks through the process of setting up a reverse proxy using nginx in a jail, and using that jail to manage all of the certificates of the servers it proxies to. This greatly simplifies the management of certificates and the SSL/TLS configuration process generally.

It will allow you to make multiple self hosted services available over the internet, and also encrypt all of your services that only run locally, provided you already own a domain.

If you have any questions, drop a comment here or on the post itself and I’ll do my best to help.

1 Like