location =/ {
        rewrite index.html permanent;
        try_files $uri $uri/ /index.html;
    }