Rewrite default login page with preffix

I have Grafana setup and I’m looking to change the default login page from:


my nginx settings:
upstream grafana {
server grafana:3000;
location /grafana {
proxy_pass http://grafana;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

    proxy_set_header Accept-Encoding "";
    charset utf-8;

and i’ve got

The full public facing url you use in browser, used for redirects and emails

If you use reverse proxy and sub path specify full url (with sub path)

root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/

Serve Grafana from subpath specified in root_url setting. By default it is set to false for compatibility reasons.

serve_from_sub_path = true

in my grafana.ini

sorry, fogot ot restart service
Everything is fine now