Try manually putting the config on the device (download from Device page, then upload in the ATA's web GUI). This will confirm whether there is an issue with your template. If it uploads and registers successfully, then you know the problem is the file name, or some rewrite setting in Nginx...