Commit Graph

91 Commits

Author SHA1 Message Date
kukulaka
2dfece3eeb removed to comments that should't be there 2020-08-31 18:33:30 +01:00
kukulaka
957291b704 fixed some typing 2020-08-31 17:47:32 +01:00
kukulaka
8a21d6fd01 Making sure delete is present 2020-08-31 17:40:16 +01:00
kukulaka
9d6f80149c changes for caching
Most changes should be here, just making sure flush cache is in for each post / delete
2020-08-31 17:16:45 +01:00
rijkvanzanten
d87038ee5d Use updated errors output format 2020-08-25 15:26:35 -04:00
Tanya Byrne
7f1b29ed08 error trap if redis is down 2020-08-25 20:17:09 +01:00
Tanya Byrne
4f6345d105 save import into rate limiter 2020-08-25 17:06:01 +01:00
Tanya Byrne
efcb711d92 changing the cache again 2020-08-25 13:23:54 +01:00
Tanya Byrne
70051a3b72 remofe unneed notes 2020-08-24 14:04:50 +01:00
Tanya Byrne
fb10e32c9f Some examples of how to use 2020-08-24 14:04:09 +01:00
Tanya Byrne
c96d24eafe Convert those strings 2020-08-24 13:53:23 +01:00
Tanya Byrne
f6912ee221 changed so can send TTL and death TTL in query parameters 2020-08-24 13:49:15 +01:00
Tanya Byrne
8e1f9c6565 missing bracket 2020-08-24 13:19:12 +01:00
Tanya Byrne
2f9099f08d change so can send cache live variables 2020-08-24 13:18:08 +01:00
Tanya Byrne
34c934cd5b update cache 2020-08-24 13:00:50 +01:00
Tanya Byrne
1f8e8ef4ee adding node part 2020-08-24 12:59:54 +01:00
Tanya Byrne
6a0f294f4d updating of redis cache 2020-08-24 12:44:59 +01:00
Tanya Byrne
cc6b272442 Basic format of cache middleware 2020-08-21 16:16:36 +01:00
Tanya Byrne
1d42e691d3 node cache service 2020-08-19 18:10:43 +01:00
Tanya Byrne
d1ab3f2ff6 made a util for the rate limiter to get config 2020-08-19 16:18:13 +01:00
Tanya Byrne
ad5fbbdd95 update env 2020-08-18 18:05:59 +01:00
Tanya Byrne
3177aa0323 Adding choice for caching rate limiting
This can be set in the config to 'redis' or 'memory'
2020-08-18 17:57:12 +01:00
Tanya Byrne
1f21377fdb Updated so there is an insurance cache if redis is not there 2020-08-18 14:23:08 +01:00
Tanya Byrne
542b4447c5 updating slightly - fixed a few bugs as was bypassing errors say if auth failed 2020-08-18 13:43:14 +01:00
Tanya Byrne
947a5ee557 Update rate-limiter.ts 2020-08-18 13:11:10 +01:00
Tanya Byrne
7019b194ee update point duration 2020-08-18 13:05:37 +01:00
Tanya Byrne
cc4e953e8b Update rate limiter to async 2020-08-18 12:47:24 +01:00
Tanya Byrne
ab03ac898f adding env variables for rate limiting 2020-08-18 12:29:54 +01:00
Tanya Byrne
c1f21217ac On second thoughts.. 2020-08-17 17:54:57 +01:00
Tanya Byrne
6b04b3f1f5 Should be using the errror handler for all errors 2020-08-17 17:51:33 +01:00
Tanya Byrne
eee7746165 Adding better exception handling to match everything else 2020-08-17 17:44:35 +01:00
Tanya Byrne
7dec7253ca I can't spell
sorry about that
2020-08-17 17:33:07 +01:00
Tanya Byrne
504d3014aa remove not needed 2020-08-17 17:31:09 +01:00
Tanya Byrne
466a0d6a5c Updated redis login to use details in env
Used details in env
2020-08-17 16:12:50 +01:00
Tanya Byrne
2a1df69818 #78 rate limiter - all routes 2020-08-17 12:56:21 +01:00
rijkvanzanten
3912fac3a6 Fix singleton check in mysql 2020-08-13 14:09:57 -04:00
rijkvanzanten
f282388249 Add permissions/me endpoint 2020-08-11 09:49:48 -04:00
rijkvanzanten
2252d5a35f Use centralized env export with validator function 2020-08-04 13:10:49 -04:00
rijkvanzanten
8e3956a10c Implement static token support for users 2020-07-31 16:08:47 -04:00
rijkvanzanten
236fe1b566 Return invalidcredentials 2020-07-30 11:49:47 -04:00
rijkvanzanten
bde7069cce Move api into api subdirectory 2020-07-29 11:22:56 -04:00