Panel works for a moment and then dissapears. V5 nginx

Panel works locally (apache ) and remote fails.
I’m assuming it’s a routing or cache issue. I read that the panel would need to have an install true option :check_mark:

    'panel' => [
        'install' => true
    ],

and nginx config {

    #kirby

    rewrite ^/(content|site|kirby)/(.*)$ /error last;
    rewrite ^/\.(?!well-known/) /error last;
    rewrite ^/(?!app\.webmanifest)[^/]+$ /index.php last;

    location / {
    try_files $uri $uri/ /index.php$is_args$args;
    }


    # svg, fonts
    location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
        add_header Access-Control-Allow-Origin "*";
        expires 220d;
        access_log off;
    }

# end kirby

    access_log off;
    error_log  /var/log/nginx/site.net-error.log error;

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ \.php$ {
        try_files $uri /index.php =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        fastcgi_buffers 32 32k;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        fastcgi_param DOCUMENT_ROOT $realpath_root;
        include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }

Nginx config.

No fastcache / ignore cache on Cloudflare and locally

All my kirby4 & 3 sites work fine.

the result from panel is a blank page and no errors…
THanks Ian

aside from your main issue its not recommended to have the panel installable on remote. it would mean that if you have no user account then anyone could create one online and gain access. thats what that setting does. it’s not about the panel being there or not.

Hmm i guess that makes sense. Most of my sites are for clients wanting panel access so it never occurred to me that Kirby might need permissions to install it.

and yes the panel is blank for me. still

Anything in the browser console?

Yes.

Loading module from “https://site.net/media/panel/656aaffb18e6a1aff5fbfe3cf106e125/js/plugins.js” was blocked because of a disallowed MIME type (“text/html”). login

But my analysis is this can also mean file not found - it’s there though.
js is correctly mime typed elsewhere.