Commit Graph

211 Commits

Author SHA1 Message Date
Tanya Byrne
c8f771c807 Only use rate limiter if rate_limit enabled set to true 2020-08-25 20:21:06 +01:00
Tanya Byrne
7f1b29ed08 error trap if redis is down 2020-08-25 20:17:09 +01:00
Tanya Byrne
da043b857c Update parse-env.ts 2020-08-25 19:41:36 +01:00
Tanya Byrne
3119064b77 expanding function for envs 2020-08-25 19:39:00 +01:00
Tanya Byrne
46b1ae5b15 Simple parser 2020-08-25 18:59:01 +01:00
Tanya Byrne
4f6345d105 save import into rate limiter 2020-08-25 17:06:01 +01:00
Tanya Byrne
6953ca7ef1 update ignore file 2020-08-25 16:41:11 +01:00
Tanya Byrne
41e3a693b1 remove keyprefix as not needed and
updates to package.json, redis import and git ignore
2020-08-25 16:40:30 +01:00
Tanya Byrne
83c6fb5624 moving rate limiter 2020-08-25 16:12:17 +01:00
Tanya Byrne
7b77a9d7a1 Update for pull request 2020-08-19 20:14:16 +01:00
Tanya Byrne
1124e70a54 Rearranged a little to be more logical 2020-08-19 16:41:17 +01:00
Tanya Byrne
5802887165 Update get-rate-limiter-config.ts 2020-08-19 16:28:56 +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
413144a9d8 match formatting. 2020-08-18 18:23:52 +01:00
Tanya Byrne
8a03d4bbdc add to env varibles so user has choice
This is between 'redis' and 'memory'
2020-08-18 18:09:19 +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
3bd71f2ced need to add the prepublish too 2020-08-18 12:04:32 +01:00
Tanya Byrne
b5f00d5781 Update package.json to include build etc for windows 2020-08-18 12:02:34 +01:00
Tanya Byrne
a92059dcc4 move rate limiter and redis to optional dependancies
Will need to add mem store or similar
2020-08-17 19:11:57 +01:00
Tanya Byrne
e77be34c79 So exmaple env is included in git 2020-08-17 19:08:02 +01:00
Tanya Byrne
51f6845d77 Remove redundant dependancy 2020-08-17 19:03:51 +01:00
Tanya Byrne
6b6e3f5f2e update to 503 2020-08-17 18:59:50 +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
b5644b113c change name 2020-08-17 17:06:34 +01:00
Tanya Byrne
42facc3d9e Update env-stub.liquid 2020-08-17 16:51:11 +01:00
Tanya Byrne
91aa4eb594 add redis details to create env 2020-08-17 16:50:10 +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
a9cc4755ef Add enable/disable service methods 2020-08-15 20:34:41 -06:00
rijkvanzanten
d918b48197 Install otplib 2020-08-15 20:34:22 -06:00
rijkvanzanten
d9ae271612 Add otp enable endpoint 2020-08-15 18:11:11 -06:00
rijkvanzanten
a90a5ca99d install base32 2020-08-15 18:10:55 -06:00
rijkvanzanten
c2b6b2a090 Rename routes to controllers 2020-08-15 16:56:45 -06:00
Ben Haynes
d9a605bf79 reorder role fields 2020-08-15 08:57:56 -04:00
Ben Haynes
f888d28734 better defaults for activity layout 2020-08-14 18:34:27 -04:00
Ben Haynes
f928f0da27 Admin to Administrator 2020-08-14 15:13:43 -04:00
rijkvanzanten
d9b63f58d6 v9.0.0-alpha.20 2020-08-13 17:45:09 -04:00
rijkvanzanten
853c2f989e Fix issue preventing updating fields 2020-08-13 16:14:26 -04:00
rijkvanzanten
3b77f4ef63 Install axios in api 2020-08-13 15:19:09 -04:00
rijkvanzanten
6b0f314e0c Add support for importing a file from URL 2020-08-13 15:08:21 -04:00