Commit Graph

837 Commits

Author SHA1 Message Date
Derrick Hammer 9bf10b19bf
refactor: add current request to tusJwtResponseWriter 2024-01-20 08:12:30 -05:00
Derrick Hammer 73fa265939
feat: implement tusJwtResponseWriter WriteHeader 2024-01-20 08:06:50 -05:00
Derrick Hammer a56fa20b6d
refactor: split findAuthToken to parseAuthTokenHeader 2024-01-20 08:03:26 -05:00
Derrick Hammer 1d1c552a0a
refactor: explicitly check the path and only for post 2024-01-20 07:57:09 -05:00
Derrick Hammer a2051acff1
feat: add initial tusJwtResponseWriter bones so we can append the auth_token to tus urls 2024-01-20 07:54:24 -05:00
Derrick Hammer 4378da70da
refactor: create and export GenerateTokenWithDuration and GenerateToken 2024-01-20 07:30:46 -05:00
Derrick Hammer 8c86ecc5b7
fix: TusUploadExists needs to operate on TusUpload not Upload 2024-01-20 07:05:27 -05:00
Derrick Hammer e8fbe46dfc
fix: uploaderID is uint64 2024-01-20 06:57:57 -05:00
Derrick Hammer 0ab70dcaa5
fix: if we have errors at the CreatedUploads hook, cancel the upload 2024-01-20 06:41:51 -05:00
Derrick Hammer af5b6241bf
fix: NotifyCreatedUploads needs to be enabled 2024-01-20 06:27:11 -05:00
Derrick Hammer b50c6c9f85
fix: dont put leading slash in prefix 2024-01-20 06:03:07 -05:00
Derrick Hammer 43e52e1ae1
fix: wrong prefix 2024-01-20 06:01:42 -05:00
Derrick Hammer fdef217078
fix: need to add a strip prefix middleware 2024-01-20 05:50:54 -05:00
Derrick Hammer fba3ee4213
fix: we don't need to wrap the tus middleware as NewHandler does it for us 2024-01-20 05:45:13 -05:00
Derrick Hammer eb063a8954
dep: replace jape with fork with HEAD support 2024-01-20 05:20:23 -05:00
Derrick Hammer eaa515345e
feat: add startCron to start list 2024-01-19 17:48:42 -05:00
Derrick Hammer 48e3c690ce
feat: register storage service with cron 2024-01-19 17:47:14 -05:00
Derrick Hammer 16a3b531ac
fix: add RegisterService 2024-01-19 17:45:52 -05:00
Derrick Hammer c397cc9fcb
fix: add initCron to init list 2024-01-19 17:44:08 -05:00
Derrick Hammer 60c7cc5c6c
refactor: fix import cycles 2024-01-19 17:12:26 -05:00
Derrick Hammer 1f7c05434a
refactor: fix import cycles 2024-01-19 17:11:16 -05:00
Derrick Hammer 72219eb59c
feat: add tus endpoints 2024-01-19 17:08:55 -05:00
Derrick Hammer 2e64b56115
refactor: need to use middleware package 2024-01-19 17:08:05 -05:00
Derrick Hammer 5b1838a63b
feat: create tus api builder 2024-01-19 17:06:41 -05:00
Derrick Hammer 26c28db1f2
feat: create ApplyMiddlewares helper 2024-01-19 17:05:18 -05:00
Derrick Hammer e9db71f3b8
refactor: move middleware to its own package to prevent import cycles 2024-01-19 17:04:25 -05:00
Derrick Hammer 4c92750dd0
feat: add tus getter 2024-01-19 16:51:41 -05:00
Derrick Hammer 2c30477465
refactor: update putfile and gethash call names 2024-01-19 15:52:26 -05:00
Derrick Hammer 6acf8a606a
feat: initial tus protocol and processing support 2024-01-19 15:51:31 -05:00
Derrick Hammer b50c16ff2a
feat: implement a tus locker based on mysql 2024-01-19 15:50:09 -05:00
Derrick Hammer 6a8936b9c9
feat: add initial tus db models 2024-01-19 15:49:41 -05:00
Derrick Hammer 1f8ad3ac1a
feat: s3 config key to required config 2024-01-19 15:47:18 -05:00
Derrick Hammer 0eb6a9a3a3
feat: added a cron service 2024-01-19 15:46:37 -05:00
Derrick Hammer 5323e43bdb
fix: initDatabase no longer needs to pass p to init 2024-01-19 15:45:02 -05:00
Derrick Hammer fbbb22145d
dep: add aws sdk, gocron, and tusd 2024-01-19 15:44:18 -05:00
Derrick Hammer 2693c892a4
refactor: use service interface 2024-01-19 12:49:06 -05:00
Derrick Hammer 2500b3f047
feat: add generic service interface 2024-01-19 12:48:37 -05:00
Derrick Hammer 5b6084986f
refactor: init doesn't need portal passed 2024-01-19 12:43:16 -05:00
Derrick Hammer 8044591697
feat: support auth in header, cookie, and query arg 2024-01-18 20:56:49 -05:00
Derrick Hammer 82f34726d6
debug: add logging 2024-01-18 14:38:15 -05:00
Derrick Hammer 12de0342f5
debug: add logging 2024-01-18 14:28:32 -05:00
Derrick Hammer 8161d36f0e
fix: bad response for existing file 2024-01-18 13:53:04 -05:00
Derrick Hammer 17fdad7d07
dep: update libs5 2024-01-18 13:52:46 -05:00
Derrick Hammer 31b6a70180
dep: update libs5 2024-01-18 12:28:46 -05:00
Derrick Hammer 677635aa08
refactor: remove auth from metadata endpoint 2024-01-18 12:18:45 -05:00
Derrick Hammer 1a62ab2855
dep: update libs5 2024-01-18 12:16:17 -05:00
Derrick Hammer ad0e6964eb
dep: update libs5 2024-01-18 12:12:20 -05:00
Derrick Hammer 4e72ddbde8
dep: update libs5 2024-01-18 10:18:06 -05:00
Derrick Hammer f957ef5d78
feat: implement /s5/metadata/:cid 2024-01-17 22:19:42 -05:00
Derrick Hammer 510a57162c
feat: implement /s5/debug/storage_locations/:hash 2024-01-17 22:02:36 -05:00