set up a proper nginx gateway with subdomains