]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
teuthology: Tell browsers not to sniff test logs 741/head
authorZack Cerza <zack@redhat.com>
Wed, 31 May 2023 22:44:01 +0000 (16:44 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 31 May 2023 22:44:01 +0000 (16:44 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/teuthology/templates/nginx.conf

index 62d1542a7779f90c2df6bd49ff757429132e9604..d459062d210b224f05380065f92b600b71cd9d70 100644 (file)
@@ -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;