mirror of
https://github.com/usememos/memos.git
synced 2024-11-16 19:56:11 +08:00
fa17dce046
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. |
||
---|---|---|
.. | ||
migration | ||
seed | ||
activity.go | ||
common.go | ||
idp.go | ||
inbox.go | ||
memo.go | ||
memo_organizer.go | ||
memo_relation.go | ||
migration_history.go | ||
migrator.go | ||
resource.go | ||
sqlite.go | ||
storage.go | ||
system_setting.go | ||
tag.go | ||
user.go | ||
user_setting.go | ||
webhook.go |