-
Notifications
You must be signed in to change notification settings - Fork 291
Kibana did not load properly
Peter Manev edited this page Dec 11, 2020
·
14 revisions
After some upgrades it could happen as to new locations are available in Kibana that need to be accessed. For example like the issue here - https://github.com/StamusNetworks/SELKS/issues/238
To begin with make sure your nginx config is always up to date as the one here:
root@SELKS6:/# cat /etc/nginx/sites-available/selks6.conf
server {
listen 127.0.0.1:80;
listen 127.0.1.1:80;
listen 443 default_server ssl;
ssl_certificate /etc/nginx/ssl/scirius.crt;
ssl_certificate_key /etc/nginx/ssl/scirius.key;
server_name SELKS;
access_log /var/log/nginx/scirius.access.log;
error_log /var/log/nginx/scirius.error.log;
# https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production
location /static/ { # STATIC_URL
alias /var/lib/scirius/static/; # STATIC_ROOT
expires 30d;
}
location /media/ { # MEDIA_URL
alias /var/lib/scirius/static/; # MEDIA_ROOT
expires 30d;
}
location /app/moloch/ {
proxy_pass https://127.0.0.1:8005;
proxy_redirect off;
}
location /plugins/ {
proxy_pass http://127.0.0.1:5601/plugins/;
proxy_redirect off;
}
location /dlls/ {
proxy_pass http://127.0.0.1:5601/dlls/;
proxy_redirect off;
}
location /socket.io/ {
proxy_pass http://127.0.0.1:5601/socket.io/;
proxy_redirect off;
}
location /dataset/ {
proxy_pass http://127.0.0.1:5601/dataset/;
proxy_redirect off;
}
location /translations/ {
proxy_pass http://127.0.0.1:5601/translations/;
proxy_redirect off;
}
location ^~ /built_assets/ {
proxy_pass http://127.0.0.1:5601/built_assets/;
proxy_redirect off;
}
location /ui/ {
proxy_pass http://127.0.0.1:5601/ui/;
proxy_redirect off;
}
location /spaces/ {
proxy_pass http://127.0.0.1:5601/spaces/;
proxy_redirect off;
}
location /node_modules/ {
proxy_pass http://127.0.0.1:5601/node_modules/;
proxy_redirect off;
}
location /internal/ {
proxy_pass http://127.0.0.1:5601/internal/;
proxy_redirect off;
}
location /31997/ {
proxy_pass http://127.0.0.1:5601/31997/;
proxy_redirect off;
}
location /32141/ {
proxy_pass http://127.0.0.1:5601/32141/;
proxy_redirect off;
}
location /33813/ {
proxy_pass http://127.0.0.1:5601/33813/;
proxy_redirect off;
}
location /33912/ {
proxy_pass http://127.0.0.1:5601/33912/;
proxy_redirect off;
}
location /33984/ {
proxy_pass http://127.0.0.1:5601/33984/;
proxy_redirect off;
}
location /34038/ {
proxy_pass http://127.0.0.1:5601/34038/;
proxy_redirect off;
}
location /bootstrap.js {
proxy_pass http://127.0.0.1:5601/bootstrap.js;
proxy_redirect off;
}
location /35949/ {
proxy_pass http://127.0.0.1:5601/35949/;
proxy_redirect off;
}
location /36063/ {
proxy_pass http://127.0.0.1:5601/36036/;
proxy_redirect off;
}
location / {
proxy_pass http://127.0.0.1:8000;
proxy_read_timeout 600;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
}
Then restart nginx :
systemctl restart nginx