Commit Graph

78 Commits

Author SHA1 Message Date
390d12eea1 add export to integration and get task api 2024-03-21 11:14:23 +08:00
d41459a5cd log unhandled error 2024-03-06 12:04:16 +08:00
c20d8e6b4d Add summaries, display accont features 2024-02-28 15:14:32 +08:00
41aa976625 flush remaining events when server exits 2024-02-26 17:28:28 +08:00
9c493d29db More graceful shutdown for the api server 2024-02-19 11:25:22 +08:00
e0ce598be5 Move apollo prom init into apollo.ts file 2024-02-12 11:29:08 +08:00
a52e8f7295 Add service label 2024-02-10 17:21:28 +08:00
5c29a6c185 Add http metrics 2024-02-10 16:05:35 +08:00
be0a2e8c52 use different redis server for mq and cache 2024-01-26 13:01:53 +08:00
ee142d3d7c Handle SIGINT in server better by moving DB call to after redis shutdown 2024-01-18 12:00:13 +08:00
ba3e5b053d Cleanup after rebase 2024-01-16 21:31:44 +08:00
5986bd0a68 Change around redis initialization so we can pull in secrets from secret manager async on startup 2024-01-16 21:30:15 +08:00
b4914f5346 Fix creation of redis clients 2024-01-16 21:27:20 +08:00
150a456c35 replace redis client library with ioredis 2024-01-16 15:42:50 +08:00
ccd4f2d3f0 catch redis client error and continue the process 2024-01-05 15:20:42 +08:00
32a58e49f9 make redis optional for backend 2024-01-04 21:55:41 +08:00
08c4624fce save the url in redis for 8 hours so rss-feeder will not try to re-save it 2024-01-04 18:03:34 +08:00
bafcdb2fee skip rate limiter for system requests 2023-12-04 14:56:26 +08:00
b7496db56c add following handler to save following item 2023-11-09 15:53:44 +08:00
5f5423ddcb add a pubsub service endpoint for cleanup soft deleted users 2023-10-25 13:02:59 +08:00
b9e2f9ee53 Add a longer rate limit window on createaccount/reset password, reduce api rate limit hits 2023-10-20 11:28:16 +08:00
46313b14ba set trust proxy = true if set in env var 2023-10-18 13:06:33 +08:00
988b20e30c test trust proxy=true 2023-10-18 12:30:27 +08:00
506004d410 test trust proxy=2 2023-10-18 11:58:15 +08:00
32ba744d20 test trust proxy=1 2023-10-18 11:04:32 +08:00
91076014cd log req.ip 2023-10-18 11:04:32 +08:00
0874f6ff21 log x-forwarded-for header for debugging purpose 2023-10-18 11:04:32 +08:00
612151c151 remove elastic from docker-compose 2023-10-05 14:24:04 +08:00
9370951893 create a repository directory 2023-10-05 14:22:56 +08:00
425864ce01 remove knex 2023-10-05 14:21:56 +08:00
f7e5a8cbfd Increase unauthed rate limit 2023-09-07 14:01:18 +08:00
f06d2558c2 update thumbnail if failed to fetch and return url if already signed 2023-08-10 18:41:03 +08:00
99a52f8d56 replace all the console logs with logger logs 2023-07-27 16:06:44 +08:00
3444480b95 change the rss-feed cronjob api endpoint 2023-07-12 10:53:32 +08:00
68667053c8 create an endpoint to fetch all rss feeds 2023-07-07 21:15:42 +08:00
74f2dd6bf1 catch authorization error in rate limiter and 5 rpm 2023-06-28 17:04:47 +08:00
b7c133d58e fix: email sending and recommendation
* use token in the custom header as the key in rate limiter
2023-06-28 17:00:11 +08:00
5d2ab3f554 create another rate limiter for auth api with 4 rpm 2023-06-14 19:31:18 +08:00
15b977f7c6 fix: set server timeout = 10 mins 2023-05-26 15:00:46 +08:00
751aec2676 Use number instead of function 2023-05-19 18:10:28 +08:00
f671b3625c Change rate limiting rules 2023-05-19 18:05:57 +08:00
1d37f04808 Properly call getClaimsByToken 2023-05-16 17:14:38 +08:00
c49ca0149f Set max to 10/minute for unauthenticated requests 2023-05-12 17:11:20 +08:00
8d9f54c62c Fix linting 2023-05-11 13:36:27 +08:00
88aa7aad4c Reduce the rate limit for unauthenticated users 2023-05-11 13:23:43 +08:00
62b772eeca Allow saving epub from email attachments 2023-04-19 11:30:49 +08:00
e6690709c3 Replace express-http-context with express-http-context2 2023-04-12 17:50:13 +08:00
59621768c8 Get request token from pocket 2023-04-12 16:50:10 +08:00
0a350bef6d Fix issues with knex version bump 2023-03-05 21:36:46 +08:00
d89a307aca Send email to user after a bulk import completes 2023-01-04 18:15:26 +08:00