Setup Sandstorm without Sandcats DNS

I'm trying to set up a Sandstorm server in a DigitalOcean droplet without using the Sandcats DNS service. So instead of having the url be "subdomain.sandcats.io" i'm trying to get it to be "subdomain.mydomain.com". I've managed to get it working over HTTP but in trying to set up a permanent HTTPS redirect through nginx i get a redirect loop error.

Anyone have experience doing this? Or perhaps have an example conf file for sandstorm and nginx that i could base my configuration off of if they have managed to do it successfully.

I got a .tech domain and tried to set it up with that but I've yet to successfully do it too, bump for someone smarter than me to notice!