Could it be your misconfiguration?
Discourse programs can use HTTPS
Check the templates item “templates/web.ssl.template.yml” in app.yml for the introduction of template files; Next, you have to check the expose entry - “443:443” # https
Whether the template is enabled