Disabling Nginx buffering for Grafana, as it may lead to errors or
delays while loading the main Grafana page, particularly when
receiving JavaScript files.
Fixes: https://tracker.ceph.com/issues/68315
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
# clear any Authorization header as Prometheus and Alertmanager are using basic-auth browser
# will send this header if Grafana is running on the same node as one of those services
proxy_set_header Authorization "";
+ proxy_buffering off;
{% if oauth2_proxy_url %}
auth_request /oauth2/auth;
error_page 401 = /oauth2/sign_in;
# clear any Authorization header as Prometheus and Alertmanager are using basic-auth browser
# will send this header if Grafana is running on the same node as one of those services
proxy_set_header Authorization "";
+ proxy_buffering off;
}
location /prometheus {
# clear any Authorization header as Prometheus and Alertmanager are using basic-auth browser
# will send this header if Grafana is running on the same node as one of those services
proxy_set_header Authorization "";
+ proxy_buffering off;
auth_request /oauth2/auth;
error_page 401 = /oauth2/sign_in;