From: Zack Cerza Date: Wed, 31 May 2023 22:44:01 +0000 (-0600) Subject: teuthology: Tell browsers not to sniff test logs X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F741%2Fhead;p=ceph-cm-ansible.git teuthology: Tell browsers not to sniff test logs Signed-off-by: Zack Cerza --- diff --git a/roles/teuthology/templates/nginx.conf b/roles/teuthology/templates/nginx.conf index 62d1542a..d459062d 100644 --- a/roles/teuthology/templates/nginx.conf +++ b/roles/teuthology/templates/nginx.conf @@ -11,6 +11,9 @@ server { server_name {{ inventory_hostname }}; location /teuthology { alias {{ archive_base }}; + # Prevents Chromium from thinking certain text files are binary, + # e.g. console logs while reimaging is underway + add_header X-Content-Type-Options nosniff; } types { text/plain log;