Assumes you are follwing the Digital Ocean guide and making a config snippet.
Areas that require changing to your specic domain:
server_name www.example.com;
include snippets/ssl-www.example.com.conf;
This is a basic config that can easily be expanded to suit your specific needs.