Sometime, it’s quite useful for helping reduce the redirection configuration, i.e. www
And I am pretty sure web ssl template will redirect the user to the actual domain.
if ($http_host != $$ENV_DISCOURSE_HOSTNAME) {
rewrite (.*) https://$$ENV_DISCOURSE_HOSTNAME$1 permanent;
}
ssl and letsencrypt templates would relieve you from all kinds of troubles.
EDIT: You don’t even need to issue any certs for domain where you want redirection comes from.