fix nginx config when there are multiple keys in the naming schema