Commit Graph

29 Commits (main)

Author SHA1 Message Date
Comix d9a92b2ef8
feat: support path style of s3 url (#4304)
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
1 month ago
Steven 387bf48fc8 chore: update s3 config 9 months ago
Steven b0aad6f694 chore: tweak resource payload 10 months ago
Steven cf7718f8dc chore: update presign expires 10 months ago
Steven dfc0889a4f chore: tweak package name 10 months ago
Steven 74145157a0 chore: add presign background service 10 months ago
Steven 05f73a2236 chore: tweak linter 10 months ago
Steven 775b79338d chore: update object in s3 10 months ago
Steven 26545c855c refactor: implement s3 storage 10 months ago
Steven 320963098f refactor: update storage setting 10 months ago
Elliot Chen bee6f278ba
fix: the same-storage check in the new `pre-sign` feature (#2860)
* fix: error check for the same oss-storage

* fix: conflict error2 variable in code refactor in s3.go

* chore: rename endpointUrl to endpointURL
1 year ago
Steven a16bde23f7 chore: tweak variable name 1 year ago
Aleksandr Baryshnikov fa17dce046
feat: pre-signed URL for S3 storage (#2855)
Adds automatically background refresh of all external links if they are belongs to the current blob (S3) storage. The feature is disabled by default in order to keep backward compatibility.

The background go-routine spawns once during startup and periodically signs and updates external links if that links belongs to current S3 storage.

The original idea was to sign external links on-demand, however, with current architecture it will require duplicated code in plenty of places. If do it, the changes will be quite invasive and in the end pointless: I believe, the architecture will be eventually updated to give more scalable way for pluggable storage. For example - Upload/Download interface without hard dependency on external link. There are stubs already, but I don't feel confident enough to change significant part of the application architecture.
1 year ago
Mudkip f654d3c90e
fix: encode filename when using url prefix for resources (#2829)
* fix: encode filename when using url prefix for resources

* fix: only encode the last parts of filename

* fix: encode all parts in filepath
1 year ago
Wen Sun 6b2eec86c2
fix: image upload failed with cloudflare R2 (#2704)
Fix image upload failed with cloudflare R2
1 year ago
Steven 436eb0e591 chore: tweak s3 comments 1 year ago
Hou Xiaoxuan e016244aba
fix: remove ACL when set URLPrefix (#2532) 1 year ago
Steven cd0ea6558d chore: update golangci-lint config 1 year ago
Athurg Gooth c27c6cea13
fix: failed to upload OSS with S3 SDK (#1792)
Fix failed to upload OSS with S3 SDK

Co-authored-by: Athurg Feng <athurg@gooth.org>
2 years ago
Alex Zhao d0c40490a7
feat: add `HostnameImmutable` to aws endpoint config (#1230)
* add config to support S3-compatible urls like minio

* add comment for HostnameImmutable

* fix linting
2 years ago
Xudong Cai d21abfc60c
feat: add URLSuffix resource option with S3 (#1428)
* feat: add URLSuffix resource option with S3

* feat: add URLSuffix resource option with S3

* fix: eslint
2 years ago
boojack ff8851fd9f
fix: golangci-lint version (#1381)
* chore: update interface declare

* chore: update args

* chore: update

* chore: update
2 years ago
Zeng1998 fd99c5461c
feat(s3): customize filenames via placeholders (#1285)
* feat(s3): customize filenames via placeholders

* fix go-static-checks

* add tips on the frontend

* fix eslint check

* remove yarn.lock

* remove Config.Path

* update tips

* fix

* update
2 years ago
boojack 31399fe475
fix: s3 custom path (#1249) 2 years ago
Alex Zhao 9d4bb5b3af
feat: add support for s3 path (#1233)
* add support for path

* fix typo and switch positions with Path and Bucket

* using path method instead of string concatenation
2 years ago
boojack 977e7f55e5
feat: add visibility field to resource (#1185) 2 years ago
boojack 9c5b44d070
feat: update storage schema (#1142) 2 years ago
boojack 7e8011ba34
chore: support deleting storage (#1095) 2 years ago
Zeng1998 1e4a81dea9
feat: storage service backend (#1086)
* feat: storage service backend

* update go.mod

* update the column name (urlPrefix -> url_prefix)

* update

* update
2 years ago