Ok I figured it out. Here is the code that needs to go in /etc/nginx/sites-available/<Your site>
set $controller /public/index.php;
location /public {
root /var/www/html/agendav/web/;
index index.php;
try_files $uri $uri/ $controller;
location ~ ^(?<script>.*\.php)(?<pathinfo>.*)$ {
try_files $script $controller;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $pathinfo;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param APPLICATION_ENV dev;
}
}
That got me to the login screen at least.