Commit Graph

62 Commits

Author SHA1 Message Date
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
2ae3226bdb Add sendNotification api 2022-11-22 12:48:17 +08:00
57ba9afbfa Remove debugging 2022-10-25 13:17:57 +08:00
c9ea622461 Use auth token to identify client request in rate limiter 2022-10-25 12:42:32 +08:00
7a48cccac9 Save client in request context 2022-10-12 14:30:39 +08:00
4b7950458c Remove Redis client in api 2022-10-12 13:40:16 +08:00
ab86450864 Rename X-Device to X-OmnivoreClient in the request headers 2022-10-12 10:27:39 +08:00
2ba9247a98 Device info expires in 10 mins 2022-10-11 19:03:33 +08:00
2210a38982 Set device of the request in Redis 2022-10-11 18:47:19 +08:00
7a9eca2622 Update text-to-speech endpoint 2022-08-26 17:53:26 +08:00
4f8d71b7cc Add a pubsub subscription listening on the new article to automatically synthesize article 2022-08-25 16:09:35 +08:00
b0bf4fc5ce Create speech while requesting 2022-08-18 19:24:38 +08:00
301746d494 Add /:id/mp3 router to redirect request to speech MP3 URL 2022-08-18 19:24:38 +08:00
971bbfda7f Add integrations service router to sync pages with integrations 2022-08-05 16:09:26 +08:00
53c423b714 WIP: upload PDFs using background task 2022-05-30 22:30:43 -07:00
7b0ebb9dbf Add pubsub subscription to trigger webhook 2022-05-26 14:51:11 +08:00
0a4d55ef15 Increase the rate limit
Turns out 10 is very low because we make CORs requests from the
browser and SWR will make background requests for some objects
like viewer. I was hitting the limit while testing search.
2022-04-21 14:59:57 -07:00