[…] "https://… […]
Try configuring your outside proxy to connect to the http-url on Discourse Nginx and not https.