Generalize nginx config to multiple domains to support staging.