Digital Ocean Discourse install with Hostgator site

I don’t quite understand your setup here.

Ideally You’d continue to host Your site on
example.com & www.example.com

And host the forum on something like
forum.example.com

Letting website and forum manage their SSL on their own. This is the very standard kind of setup and should work.

If You could explain specifically what is failing then you may be able to get some help here.