Sean-Der / fail2web

a fail2ban GUI powered by fail2rest
536 stars 48 forks source link

Blank page and HTTP 200 on landing page #36

Closed decentral1se closed 5 years ago

decentral1se commented 5 years ago

Following from https://github.com/Sean-Der/fail2web/issues/35, I've got what looks like a working installation of fail2web but I am seeing a blank page after I load the page. In the console, I am seeing:

Error: [$injector:unpr] Unknown provider: $$asyncCallbackProvider <- $$asyncCallback <- $animate <- $compile
https://errors.angularjs.org/1.7.8/$injector/unpr?p0=%24%24asyncCallbackProvider%20%3C-%20%24%24asyncCallback%20%3C-%20%24animate%20%3C-%20%24compile

I am using:

root@yunohostdev:/var/www/fail2web# node --version
v12.3.1
root@yunohostdev:/var/www/fail2web# npm --version
6.9.0
root@yunohostdev:/var/www/fail2web# go version
go version go1.7.4 linux/amd64

I've got my fail2web install in /var/www/fail2web with a web/index.html all built using npm install and npm run build. fail2rest is running successfully under the systemd manager. Here's my nginx configuration:

server {
    listen       80;
    server_name  116.203.73.21 ;

    location / {
        root /var/www/fail2web/web;
    }

    location /api/ {
        proxy_pass         http://127.0.0.1:5000/;
        proxy_redirect     off;
    }
}

I'm just trying to get a loading page before integrating authentication etc.

Any thoughts?

decentral1se commented 5 years ago

See https://github.com/Sean-Der/fail2web/issues/35#issuecomment-495334530.