tariqbuilds / linux-dash

A beautiful web dashboard for Linux
https://afaqurk.github.io/linux-dash/
MIT License
10.4k stars 1.2k forks source link

Get the webpage but no information in the boxes. #518

Open bananabob opened 4 months ago

bananabob commented 4 months ago

I can see the webpage produced by Dash, but there is no data in any of the boxes.

My set up is on a RPi 5. I am using Nginx

Here is my nginx config:

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    autoindex on;
    root /var/www/html;

    index index.html index.htm index.php;

    server_name silver;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
}

        location /dash {
        index index.html index.php;
}

    # pass PHP scripts to FastCGI server
    #
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
    #
    #   # With php-fpm (or other unix sockets):
        #fastcgi_pass unix:/run/php/php7.4-fpm.sock;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;

                fastcgi_split_path_info ^(.+\.php)(/.*)$;

                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param DOCUMENT_ROOT $realpath_root;
                fastcgi_param HTTPS off;
                fastcgi_read_timeout 1000;

                include fastcgi_params;

    #   # With php-cgi (or other tcp sockets):
    #   fastcgi_pass 127.0.0.1:9000;
    }
}

In /var/www/ the /html is a link:

lrwxrwxrwx 1 root root 32 Mar 29 13:28 html -> /S3TB/data/share/Documents/HTML/

and /dash can be found in that directory

drwxrwxr-x 5 james janda 4096 Apr 1 14:17 dash

I am assuming that the problem is with my nginx configuration for the location of dash.

Any help would be appreciated.