I am setting up Discourse using Docker, following the official installation tutorial, with SSL and CDN enabled. The installation process completes without any errors, but when I load the forum it shows up blank (white screen).
Browser console shows this:
I tried modifying app.yml like this:
env: [...] ## ## Cross-Origin Resource Sharing DISCOURSE_ENABLE_CORS: true DISCOURSE_CORS_ORIGIN: '*' [...]
Still the same white screen. Looks like the CORS variables are not among current env variables for Discourse.
This seems to be the fix (credit to @sam):
But it’s just a side-effect of disabling an option. Besides I don’t need to uncheck this option when I install Discourse with CDN enabled but without SSL. So, there must be something wrong with the SSL side of Discourse?
EDIT: Could this really be a bug? See: https://meta.discourse.org/t/cloudfront-cannot-establish-ssl-connection-to-discourse-origin/16752/7
NOTE: This question has changed substantially since it was first posted; corrected my incorrect initial understanding of the situation.