I have been going round this for months and months as I am newbie to almost everything programming and environment.
I have my php application which has a MySQL backend. I have a Nginx webserver for the application.
I setup Grafana and am trying to use Nginx as auth proxy.
When I register/login into my app, user should be able to go directly into grafana without any credentials screen. In other words, Grafana should use my apps MySQL based authentication instead of its own authentication. I even have setup grafana to use MySQL instead of Sqllite.
But everytime I login or register, when I try to go Grafana, it goes to the grafana Login screen. What am I doing wrong.
My Nginx Conf is:
#proxy_set_header Host $host;
#proxy_set_header X-WEBAUTH-USER $username;
#rewrite ^/grafana/(.*) /$1 break;
My Grafana conf is:
enabled = true
header_name = X-WEBAUTH-USER
header_property = username
auto_sign_up = true
If I use the following option in nginx,
proxy_set_header X-WEBAUTH-USER $username;
Then nginx fails with a message saying unknown variable username.