Using the following config and added the above code does not work. It won't let me log in the fusio app using the user credentials.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /var/www/fusio/html/public;
index index.html index.htm index.nginx-debian.html index.php;
server_name
demo.fusio-project.org;
ssl_password_file /etc/ssl/test.pass;
ssl_certificate /etc/ssl/bundle.crt;
ssl_certificate_key /etc/ssl/privatekey.key;
#location / {
# try_files $uri $uri/ /index.php$is_args$args;
#}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
}
location ~ /apps/ {
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php/$1 break;
}
}
error_log /var/log/nginx/fusio_error.log;
access_log /var/log/nginx/fusio_access.log;
}