Unable to install and launchon ubuntu

Hello guys
So I’ve installed Grafana on my server.
After that, I’ve changed my configs to this since I want to access it via https://equalizerbot.xyz/status
Also I’ve added this to my Nginx configs:

When I go to https://equalizerbot.xyz/status I get this error:

If you’re seeing this Grafana has failed to load its application files

  1. This could be caused by your reverse proxy settings.

  2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath

  3. If you have a local dev build make sure you build frontend using: npm run dev, npm run watch, or npm run build

  4. Sometimes restarting grafana-server can help

Can someone please help me, since I don’t know what am I doing wrong!

Also this is my logs: https://cdn.discordapp.com/attachments/416549374244552704/556443420135260170/grafana.log

your nginx.conf should look like this (the rewrite is important)

  location /status/ {
     proxy_pass         http://localhost:3000/;
     proxy_set_header   Host $host;
     rewrite  ^/status/(.*)  /$1 break;

Thank you sir!
It worked