I am having a lot of trouble trying to work out how to do this. I would like to redirect non-www to www using 301 redirect.
I am using digitalocean and ubuntu 20.
Can anyone please advise me how to do this. When I try to follow any guides its saying to find the nginx config file but my discourse installation doesn’t seem to have one.