I tried to use grafana on subpath with nginx by refering these links;
http://docs.grafana.org/installation/behind_proxy/#nginx-configuration-with-sub-path
https://serverfault.com/questions/684709/how-to-proxy-grafana-with-nginx
https://localhost:3000/t/grafana-not-running-behind-nginx/711/2
I am getting “{{alert.title}}” and “Failed to load resource: the server responded with a status of 401 ()” Errors when use the url ;
" https://company.com/grafana/login "
Browser Elements and Console inspect are on attach.
My environment ;
Docker grafana container port 5602 and nginx use the port and forward to 9001.
Nginx conf ;
location ~ (/grafana/.) {
proxy_pass http://127.0.0.1:9001;
proxy_max_temp_file_size 0;
proxy_set_header Host $host;
rewrite ^/grafana/(.) /$1 break;
proxy_ignore_client_abort on;
}
Grafana config;
/etc/grafana/grafana.ini
[server]
protocol = http
domain = company
root_url = %(protocol)s://%(domain)s:/grafana