Skip to content

Commit

Permalink
Remove unnecessary URL matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut authored Feb 22, 2018
1 parent f5826fa commit d39e9ea
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .infra/kube/tusd-kube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -124,4 +116,4 @@ spec:
name: tusd
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 90
targetCPUUtilizationPercentage: 90

1 comment on commit d39e9ea

@kiloreux
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks @Acconut

Please sign in to comment.