Could maybe put the variables into an nginx settings file to be read by the conf file, similar to what I did with Windshaft.  That would cut down somewhat on the huge strings in the provisioning file.