Hi again!
I set up a production ListenBrainz server but I can’t figure out how to use HTTPS for the site.
I wanted to avoid touching the upstream repository as much as possible (i.e. making changes to use HTTPS in the Docker files / code). I thought of using an nginx reverse proxy and tried following three guides:
- Securing HTTP Traffic to Upstream Servers
- How To Configure Nginx with SSL as a Reverse Proxy for Jenkins
- How to proxy web apps using nginx?
However, all of these guides resulted in 502 Bad Gateways or my browser would fail to establish a connection. (Note: I did change the port the Docker web container ran on from 80
to 8081
because I couldn’t get nginx to start otherwise.)
I was curious… how does MetaBrainz do this in production? I’d like to support HTTPS for our site too, but can’t figure out how to do it.