Merge branch 'master' of github.com:tus/tusd
This commit is contained in:
commit
0dafbddcc9
|
@ -75,14 +75,6 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/tls-acme: "true"
|
kubernetes.io/tls-acme: "true"
|
||||||
kubernetes.io/ingress.class: "nginx"
|
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-body-size: 0m
|
||||||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
|
nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
|
||||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
|
||||||
|
|
|
@ -37,7 +37,7 @@ If you meet this criteria, you can clone the git repository and build the binary
|
||||||
```bash
|
```bash
|
||||||
git clone git@github.com:tus/tusd.git
|
git clone git@github.com:tus/tusd.git
|
||||||
cd tusd
|
cd tusd
|
||||||
go build -o tusd cmd/tusd/main
|
go build -o tusd cmd/tusd/main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running tusd
|
## Running tusd
|
||||||
|
|
|
@ -12,9 +12,11 @@
|
||||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||||
|
|
||||||
# Tell tusd that the HTTPS protocol is used, in order to
|
# In order that tusd can construct correct upload URLs, we tell tusd
|
||||||
# allow constructing correct upload URLs.
|
# that the HTTPS protocol is used and also forward the original Host
|
||||||
|
# Header.
|
||||||
RequestHeader set X-Forwarded-Proto "https"
|
RequestHeader set X-Forwarded-Proto "https"
|
||||||
|
ProxyPreserveHost on
|
||||||
|
|
||||||
# Pass requests to tusd server
|
# Pass requests to tusd server
|
||||||
ProxyPass /files http://localhost:1080/files
|
ProxyPass /files http://localhost:1080/files
|
||||||
|
|
Loading…
Reference in New Issue