How should I setup with www. domain?

example.com is sufficient. You will need forum.example.com or other subdomain if your Discourse is on a subdomain.