Small script to write nginx configuration from mesos or kubernetes