]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: disabling nginx buffering for grafana location 60053/head
authorRedouane Kachach <rkachach@ibm.com>
Tue, 15 Oct 2024 11:34:32 +0000 (13:34 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Tue, 15 Oct 2024 11:34:32 +0000 (13:34 +0200)
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>
src/pybind/mgr/cephadm/templates/services/mgmt-gateway/external_server.conf.j2
src/pybind/mgr/cephadm/tests/test_services.py

index b830034a7d4e9e490be25358594ac50c7db926d5..91efa91a8d50fb341732c9892a223f8712bf6093 100644 (file)
@@ -113,6 +113,7 @@ server {
         # 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;
index a05c87ce3c3a9018b2c94c01017fbb009f30fe44..072f4bec554e18fa83b135e6d7bf6242c6386262 100644 (file)
@@ -3900,6 +3900,7 @@ class TestMgmtGateway:
                                                      # 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 {
@@ -4171,6 +4172,7 @@ class TestMgmtGateway:
                                                      # 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;