Isolate nginx config script, so it can be run from cap easier