fixing the config generation for nginx