mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[performance]: make s3 urls cacheable (#1194)
Implements #864 and should speed up s3 based installations by a lot. With more static urls, we can then also implement #1026 for even better performance when used in conjunction with CDNs
This commit is contained in:
@@ -73,7 +73,7 @@ var Start action.GTSAction = func(ctx context.Context) error {
|
||||
router := testrig.NewTestRouter(dbService)
|
||||
var storageBackend *storage.Driver
|
||||
if os.Getenv("GTS_STORAGE_BACKEND") == "s3" {
|
||||
storageBackend = testrig.NewS3Storage()
|
||||
storageBackend, _ = storage.NewS3Storage()
|
||||
} else {
|
||||
storageBackend = testrig.NewInMemoryStorage()
|
||||
}
|
||||
|
Reference in New Issue
Block a user