tariqbuilds / linux-dash

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

Can't exit Demo mode (Debian 9 | Nginx | PHP7) #434

Closed MacND closed 7 years ago

MacND commented 7 years ago

I've followed 3 different guides at this point and it's still not exiting demo mode, and I have no idea why. I'm almost definitely just doing something stupid, so any help would be appreciated.

linux-dash: /usr/local/nginx/html/linux-dash ls of linux-dash: LICENSE.md README.md app bin demo.js gulpfile.js index.html package.json src dash.conf:

server {
server_name my.domain.name;
listen 80;

root /usr/www/html/linux-dash;
index index.html index.php;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

location ~* \.(?:xml|ogg|mp3|mp4|ogv|svg|svgz|eot|otf|woff|ttf|css|js|jpg|jpeg|gif|png|ico)$ {
            try_files $uri =404;
            expires max;
            access_log off;
            add_header Pragma public;
            add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}

location / {
        auth_basic "Restricted";
        auth_basic_user_file /usr/local/nginx/conf/.htpasswd;
        index index.html index.php;    
}

    location ~ \.php(/|$) {
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_split_path_info ^(.+?\.php)(/.*)$;
            fastcgi_pass unix:/var/run/php7.0-fpm.sock;
            if (!-f $document_root$fastcgi_script_name) {
                    return 404;
            }
            try_files $uri $uri/ /index.php?$args;
            include fastcgi_params;
    }
}
Shadowfied commented 7 years ago

Did you solve this? Same issue here..

fosron commented 7 years ago

https://github.com/afaqurk/linux-dash/blob/master/src/js/core/features/navbar/navbar.directive.js The "Demo Mode" is hardcoded here.

r0max commented 5 years ago

You need to point root to /usr/www/html/linux-dash/app or access it as sub folder, i.e. http://HOSTNAME/app