Commit Graph

12 Commits

Author SHA1 Message Date
74145157a0 chore: add presign background service 2024-05-02 22:08:45 +08:00
26545c855c refactor: implement s3 storage 2024-05-02 21:28:06 +08:00
7cc8b951a3 refactor: update resource id naming 2024-03-20 20:39:16 +08:00
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.
2024-01-29 21:12:29 +08:00
582cc6609c feat: add user-defined id to resource 2024-01-21 10:49:30 +08:00
8b9455d784 chore: fix memo resources position 2024-01-06 09:23:20 +08:00
501f8898f6 chore: fix postgres stmts 2024-01-05 21:27:16 +08:00
f184d65267 fix: attachments send from telegram lost (#2650) 2023-12-21 09:47:25 +08:00
2d9c5d16e1 chore: fix user string 2023-12-13 19:08:06 +08:00
c608877c3e chore: clean binary entries 2023-12-11 22:16:39 +08:00
d275713aff chore: fix timestamp type in postgres 2023-12-09 23:19:57 +08:00
9c18960f47 feat: support Postgres (#2569)
* skeleton of postgres

skeleton

* Adding Postgres specific db schema sql

* user test passed

* memo store test passed

* tag is working

* update user setting test done

* activity test done

* idp test passed

* inbox test done

* memo_organizer, UNTESTED

* memo relation test passed

* webhook test passed

* system setting test passed

* passed storage test

* pass resource test

* migration_history done

* fix memo_relation_test

* fixing server memo_relation test

* passes memo relation server test

* paess memo test

* final manual testing done

* final fixes

* final fixes cleanup

* sync schema

* lint

* lint

* lint

* lint

* lint
2023-12-03 13:31:29 +08:00