Your comments

In url pattern use

[^/]\.php(/|$)|[^/]/update.php(/.*|$)


In Advanced add to Custom configuration


location / {
try_files $uri /index.php?$query_string;
}


https://pantheon.io/blog/update-your-nginx-config-drupal-8