To redirect non-www to www you need to create a file (redirect.conf) in this folder /etc/nginx/conf.d
in this file you add
return 301 https://www.domain.com$request_uri;
From my side I'm trying to add a SSL certificate that I bought, but I didn't find where to add
#... other stuff
if you please can you send me the content of these files (don't forget to remove your domain)
it may help me find a solution for my challenge!