Fixing SSL mixed content errors with external NGINX proxy via UNIX socket

There is a site setting force_https. You might set this env variable

DISCOURSE_FORCE_HTTPS=true