1. Describe your incident:
I cannot access Graylog dashboard, its appear as a blank page with error like this:
Refused to execute script from ‘’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
This server has a Grafana in it, which is the main page of url is grafana dashboard, and i route the graylog to the: https://grafanadomain.com/graylog. My grafana is werk well.
Grafana and Graylog are running behind the nginx and i have configured it too.
I try to curl localhost:9000 (which is where graylog runs), it work well, but in browser is a blank page.
I try running graylog as a alone in another server without the grafana or nginx, its work well too.
This is my environment:
OS: Ubuntu 22.04
Nginx: 1.18.0
Opensearch: 2.8.0
Graylog: 5.1
server.conf in graylog was:
http_external_uri = https://grafanadomain.com/graylog/
http_enable_cors = true
http_publish_uri = http://publicIP:9000/
http_bind_address = 0.0.0.0:9000
trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128
my opensearch.yml
network.host: 0.0.0.0
transport.tcp.port: 9300
http.port: 9200
plugins.security.disabled: true
I have tried this step:
- add this into my nginx.conf
location ~ \.js$ {
add_header Content-Type application/javascript;
}
but it doesnt work. Anyone could help me?