how would you set up one app which connects to a database depending on the subdomain?
The database connection (MONGO_URL) ist set in the environment variables. But i dont know how to work with variables on that level.
At the moment we use nginx. But as far as i know, we have to start one instance of the app for every different customer.