Commit Graph

607 Commits

Author SHA1 Message Date
Marius 5e22d82ca5 Allow certain file types to be shown inline in browsers 2018-02-28 22:55:14 +01:00
Marius 6230c23566 Force browser to download content
For example, prevent HTML from being rendered
2018-02-19 18:28:42 +01:00
Marius 21073886e6 Merge branch 'master' of github.com:tus/tusd 2018-02-16 23:18:47 +01:00
Marius d002eb390e Improve messages for GCS store 2018-02-16 23:18:26 +01:00
Marius cdafea14dc
Update README.md 2018-02-16 23:17:13 +01:00
kiloreux 755e892e30 Fix mimetype filter @kvz 2018-02-16 14:46:58 +01:00
kiloreux ca69a48f69
Do not limit CPU 2018-01-16 16:09:02 +01:00
kiloreux 367ba5a8b3
Take another test of NFS 2018-01-12 00:58:59 +01:00
kiloreux 25c1b78e9d
Not literal 2018-01-11 12:24:40 +01:00
kiloreux bf1b270797
tus namespace 2018-01-11 12:03:14 +01:00
kiloreux 6795bd7669 Added NFS support for easier blue/green deployments 2018-01-11 11:08:44 +01:00
Marius baceec15ed Correct filename for apache2 config 2018-01-08 17:17:03 +01:00
Marius eea5279b1e
Update links to nginx and apache2 config 2018-01-08 17:15:45 +01:00
Marius 9304ecba6e
Add back apache2.conf 2018-01-08 17:13:24 +01:00
Marius 6a5fbd7e05
Add back nginx.conf 2018-01-08 17:12:56 +01:00
kiloreux d140ad991a
Set to zero again 2018-01-08 08:21:35 +01:00
kiloreux c1ae4d4a6c
Remove files and unify kube 2018-01-06 16:53:24 +01:00
kiloreux 77614ae18f
No downtime for tusd 2018-01-05 15:58:39 +01:00
kiloreux 5393631386
Remove frey files @Acconut 2018-01-05 15:53:49 +01:00
kiloreux 02cfb33054
body size 0 @kvz 2018-01-05 15:51:39 +01:00
kiloreux b2a568d525
Fix tus 2018-01-05 15:33:16 +01:00
kiloreux 9d74bf722d
kubectl bug 2018-01-04 19:41:18 +01:00
kiloreux 319f961706
Commit permissions fix 2018-01-04 19:00:38 +01:00
kiloreux cb040c9afd
Remove tusd user 2018-01-04 17:51:27 +01:00
kiloreux a7f2d8cdd2
Deploy on master 2018-01-04 17:36:10 +01:00
kiloreux 49dd1be822
Remove user from dockerfile and mvoe it to deployment 2018-01-04 17:27:57 +01:00
kiloreux 2eba9ebeba
Added entrypoint to fix permissions 2018-01-04 17:25:30 +01:00
kiloreux 825e9a835a
Enable cors 2018-01-04 16:59:33 +01:00
kiloreux 25cfb90a86
multiple domains 2018-01-03 13:25:51 +01:00
kiloreux 2ff9da6d88
Upgrade tus domain 2018-01-03 13:19:36 +01:00
kiloreux adddcf752d Kube (#163)
* Initial kube

* Added testing docker image

* Added docker building

* Deploy the branch

* Deploy to production

* hiddent maybe

* Faster build please

* One charachter

* We need to use yaml in standard way

* Bring test back again

* Added command arguments

* Move to tus project

* Domain expired

* Added King Marius recommendation

* Added pvc

* Change branch name

* Added HPA

* Extended memory @Acconut

* Separete gcloud from kubernetes

* remove test for quicker iteration

* Remove garbage ignore

* Move back to old trusty

* Debug base64

* Remove docker build and test again base64

* Bring it back

* Wrong

* we don't need helm

* Update domain

* Increase body size

* Add long timeouts because we don't want another nginx instance

* Get the tests running again
2018-01-03 13:10:44 +01:00
Marius ef64437ccc
Merge pull request #161 from peixian/fix-gcs-object-info
GetInfo now properly retrieves info for composed objects
2017-12-01 15:01:33 +01:00
Kevin van Zonneveld 897e40e02d Revert "Revert "Revert "[wip] K8s (#162)"""
This reverts commit 66887c14e0.
2017-11-29 11:22:05 +01:00
Kevin van Zonneveld 66887c14e0 Revert "Revert "[wip] K8s (#162)""
This reverts commit a7dd6a5160.
2017-11-29 11:21:34 +01:00
Kevin van Zonneveld a7dd6a5160 Revert "[wip] K8s (#162)"
This reverts commit 88d5475691.
2017-11-29 11:21:21 +01:00
Kevin van Zonneveld f78d395f1a Merge branch 'master' of github.com:tus/tusd 2017-11-29 11:20:10 +01:00
kiloreux 88d5475691 [wip] K8s (#162)
* Initial kube

* Added testing docker image

* Added docker building

* Deploy the branch

* Deploy to production

* hiddent maybe

* Faster build please

* One charachter

* We need to use yaml in standard way

* Bring test back again

* Added command arguments

* Move to tus project

* Domain expired
2017-11-29 11:06:45 +01:00
Peixian Wang bbb0fd5ec7
GetInfo now properly retrieves the object size 2017-11-28 10:24:30 -05:00
Marius 6f9b66f3ad Fix nil pointer derefernce in gcsstore tests 2017-11-21 14:29:28 +01:00
Marius f347495e55 Do not test for consul on Go 1.7 2017-11-21 13:18:47 +01:00
Marius 49e6f02190 Run gcsstore tests on CI 2017-11-21 13:06:04 +01:00
Marius 52265b622d Expose concatenation support in filestore 2017-11-21 13:00:43 +01:00
Marius e8b1cb18d4 Update dependencies 2017-11-20 22:35:32 +01:00
Tom Berger 4c0f4cc9d9 Add support for Google Cloud storage as a DataStore (#106)
* Add support for Google cloud storage as a DataStore

* Use memorylocker in GCS composer

* Add documentation and recursive compose

* Offset being calculated in getInfo. Tests not working

* Fix tests. Attach metadata to composed object.

* Add dependencies using govendor. Add new package to README. Add test instructions for AppVeyor

* Add google cloud internal and transport packages with govendor

* Adding more dependencies to pass travis integration

* Update w/ internal packages

* Skip tests on go1.5/1.6

* Gcsstore tests (#2)

* Refactor as a struct of clojures for testing

* Refactor to support tests

* Add docs

* Struct members cannot fufill the interface, adding wrapper functions

* update tests

* Update documentation

* add more tests

* Add gock and redo some tests

* Add gock

* remove unneeded clojures
2017-09-16 20:49:09 +02:00
Marius d79a4bce63 Merge branch 'master' of github.com:tus/tusd 2017-09-03 10:58:34 +02:00
Markus Kienast 2df5d11672 s3store: calculate part size based on upload size
See https://github.com/tus/tusd/issues/149 and
https://github.com/tus/tusd/pull/150 for more details.

Squashed commit of the following:

commit 78312ab26ea7ee664038e5b5d362bd534bfe0e37
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 19:49:48 2017 +0200

    Correct error assertions for exceeding max part size

commit 9350712c0a46651e6a7a91d8819307ba4b08ec7e
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 19:44:28 2017 +0200

    Make CalcOptimalPartSize unexported

commit 593f3b2d37d16c51f229572c1d6b39fc2a234079
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 19:38:46 2017 +0200

    Add more output for debugging tests

commit b7193bfe67b535c9b9dd441610b41af11fe4538f
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 19:35:48 2017 +0200

    Extract size assertions into own function

commit 7521de23194652519fbbf3d61a41ef0b44b005fa
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 19:26:48 2017 +0200

    Move tests for CalcPartSize into own file

commit 6c483de7710cc119c870271ccad629c98c15c9a3
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 19:13:02 2017 +0200

    Use same assertions in AllUploadSizes test

commit 7b0290a07e7def09ea8ed982e7817a2ea7cd468a
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 18:30:02 2017 +0200

    Split negative test case from TestCalcOptimalPartSize into own test

commit 79c0a20d7bc71b494bc0824ad2aa8879b0c2900b
Merge: 5240f9b 997961f
Author: Marius <maerious@gmail.com>
Date:   Fri Sep 1 17:32:31 2017 +0200

    Merge branch 'f-s3-part-size' of https://github.com/flaneurtv/tusd into flaneurtv-f-s3-part-size

commit 997961ff5c
Author: Markus Kienast <mark@rickkiste.at>
Date:   Fri Sep 1 00:59:38 2017 +0200

    TestNewUploadLargerMaxObjectSize

commit 0831bd79f8
Author: Markus Kienast <mark@rickkiste.at>
Date:   Thu Aug 31 23:08:03 2017 +0200

    fmt.Sprintf removed, range from 0 - MaxObjectSize+1

commit 1be7081524
Author: Markus Kienast <mark@rickkiste.at>
Date:   Tue Aug 29 10:23:50 2017 +0200

    turn off debug mode

commit be9a9bec10
Author: Markus Kienast <mark@rickkiste.at>
Date:   Tue Aug 29 10:12:20 2017 +0200

    moved MaxObjectSize check to NewUpload, refined tests

    * moved MaxObjectSize check to NewUpload
    * removed MaxObjectSize check from CalcOptimalPartSize
    * switched to assert in tests
    * added TestAllPartSizes, excluded in short mode

    TODO: TestNewUploadLargerMaxObjectSize needs to fail if MaxObjectSize > size

commit 7c22847a45
Author: Markus Kienast <mark@rickkiste.at>
Date:   Sat Aug 26 12:55:07 2017 +0200

    adding debug code to TestCalcOptimalPartSize

commit 5240f9b549000fac34be79ddfbe6e82404387f6b
Merge: 63c011e 5b116e7
Author: Marius <maerious@gmail.com>
Date:   Sat Aug 26 12:50:51 2017 +0200

    Merge branch 'f-s3-part-size' of https://github.com/flaneurtv/tusd into flaneurtv-f-s3-part-size

commit 63c011ef768db42e99004df921c2b9e5c4776fd2
Author: Marius <maerious@gmail.com>
Date:   Sat Aug 26 12:50:45 2017 +0200

    Format s3store_test

commit 5b116e7087
Author: Markus Kienast <mark@rickkiste.at>
Date:   Sat Aug 26 12:24:22 2017 +0200

    restructuring tests to accommodate optimalPartSize of 0

commit 93134a5696
Author: Markus Kienast <mark@rickkiste.at>
Date:   Sat Aug 26 12:03:18 2017 +0200

    moving MaxObjectSize check to top

commit 68e6bb8c41
Author: Markus Kienast <mark@rickkiste.at>
Date:   Sat Aug 26 02:31:27 2017 +0200

    enhance readability, comments and errors

commit 8831a98c34
Author: Markus Kienast <mark@rickkiste.at>
Date:   Thu Aug 24 02:27:57 2017 +0200

    separated partsize calc and error handling

commit f059acc7cc
Author: Markus Kienast <mark@rickkiste.at>
Date:   Thu Aug 24 01:29:26 2017 +0200

    fixed edge cases; pre-cleanup

commit e2e3b9ffe4
Author: Markus Kienast <mark@rickkiste.at>
Date:   Wed Aug 23 13:28:59 2017 +0200

    added error, when size > MaxObjectSize; additional case in algorithm + tests; go fmt

commit 381d3326cb
Author: Markus Kienast <mark@rickkiste.at>
Date:   Thu Aug 17 16:32:25 2017 +0200

    calculating PartSize based on size of upload

    simplified algorithm, respect MaxObjectSize, updated tests, go fmt

commit 1ad6187d6d
Author: koenvo <info@koenvossen.nl>
Date:   Thu Aug 17 21:31:37 2017 +0200

    Take IsTruncated field of S3 ListParts API response into account (#148)

    * Take IsTruncated field of S3 ListParts API response into account

    * Rename s3store.ListParts to ListAllParts

    * Use proper formatting + make listAllParts private + test listAllParts through TestGetInfo

    * Update TestFinishUpload to also test paged ListParts response
2017-09-03 10:57:06 +02:00
Marius dda5f922c3 Test against Go 1.9 on Travis 2017-08-26 16:32:03 +02:00
Marius 185e81409a Exclude consullocker from tests on AppVeyor 2017-08-26 16:31:28 +02:00
koenvo 1ad6187d6d Take IsTruncated field of S3 ListParts API response into account (#148)
* Take IsTruncated field of S3 ListParts API response into account

* Rename s3store.ListParts to ListAllParts

* Use proper formatting + make listAllParts private + test listAllParts through TestGetInfo

* Update TestFinishUpload to also test paged ListParts response
2017-08-17 21:31:37 +02:00
Kevin van Zonneveld 28211fdda5 Add empty commit for the purpose of testing Docker Automated Build 2017-07-20 13:06:55 +02:00