So what factors/conditions would impact the assets (JS/CSS) URL protocol HTTP/HTTPS?
- If you comment out below, and your site access from HTTP, then assets URL will be HTTP as well
#- "templates/web.ssl.template.yml"
#- "templates/web.letsencrypt.ssl.template.yml"
In this case, if you enable force_https you will end up with all assets URL error R_SSL_PROTOCOL_ERROR if you requested domain doesn’t install certificate. Then to avoid that you install certificate for that to resolve the SSL protocol issue
- If you instead install Discourse with above template uncommented, the site’s assets URL should be HTTPS along with your site base URL protocol. And more, the
force httpsis invisible in admin UI.