From d39e9eac8ab145b181dc02fb01580d3c6baccd3d Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 22 Feb 2018 21:28:45 +0100 Subject: [PATCH] Remove unnecessary URL matcher See https://github.com/tus/tusd/commit/755e892e3039f333f2738d44749e6934af8c189e#r27614413, @kvz and @kiloreux --- .infra/kube/tusd-kube.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.infra/kube/tusd-kube.yaml b/.infra/kube/tusd-kube.yaml index cffd91f..9b83ccc 100644 --- a/.infra/kube/tusd-kube.yaml +++ b/.infra/kube/tusd-kube.yaml @@ -75,14 +75,6 @@ metadata: annotations: kubernetes.io/tls-acme: "true" kubernetes.io/ingress.class: "nginx" - nginx.ingress.kubernetes.io/configuration-snippet: | - # Security: Don't allow people to upload html and then have browsers parse it - if ($uri ~ \.(?!(jpe?g|gif|png|webp|webm|mp4|mpg|avi|3gp|wav|mp3))$) { - add_header Content-Type application/octet-stream; - add_header Content-Disposition "attachment; filename=$basename"; - add_header X-Download-Options noopen; - add_header X-Content-Type-Options nosniff; - } nginx.ingress.kubernetes.io/proxy-body-size: 0m nginx.ingress.kubernetes.io/proxy-connect-timeout: "300" nginx.ingress.kubernetes.io/proxy-read-timeout: "300" @@ -124,4 +116,4 @@ spec: name: tusd minReplicas: 1 maxReplicas: 5 - targetCPUUtilizationPercentage: 90 \ No newline at end of file + targetCPUUtilizationPercentage: 90