I set up a chatmail relay on a subdomain, chat.example.com. I skipped uploading a webpage by setting the www_folder value to disabled.
I would like to use the same server to host a static website on the root domain, example.com. Is it just a matter of modifying the nginx config file to add my root domain in there? I feel like that would be too simple.
Turns out it just might be that simple! I’ve added a new server block with the root domain and it is serving static content over port 80. Hoping when I generate some certificates that it doesn’t mess with any of the chatmail certs.
I ended up moving the static site off the chatmail relay. Technically not supported and also I didn’t want to break anything now that the relay was working.
Ohhh, I’m also hosting a static website on a server and a chatmail relay on another. I wanted to have everything in a single server, but as you say these two things seem to clash with each other.