From 25d4860be0053f0d3f27cf03947bf05a15f03f62 Mon Sep 17 00:00:00 2001 From: Rohan Patel Date: Thu, 26 Sep 2019 17:11:55 -0400 Subject: [PATCH] added otf-frontend default config files Change-Id: I308c452ccfc0afacf9db5bd5fd9d0d2ec740bd9a Signed-off-by: Rohan Patel --- otf-frontend/.gitignore | 1 - otf-frontend/server/config/default.json | 52 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 otf-frontend/server/config/default.json diff --git a/otf-frontend/.gitignore b/otf-frontend/.gitignore index 91cebbb..aef7f2b 100644 --- a/otf-frontend/.gitignore +++ b/otf-frontend/.gitignore @@ -111,7 +111,6 @@ typings/ # End of https://www.gitignore.io/api/node,angular -server/config/default.json # certs server/config/cert/*.pem diff --git a/otf-frontend/server/config/default.json b/otf-frontend/server/config/default.json new file mode 100644 index 0000000..dee3f8b --- /dev/null +++ b/otf-frontend/server/config/default.json @@ -0,0 +1,52 @@ +{ + "host": "0.0.0.0", + "path": "otf/api/", + "base-path": "otf/api/v1/", + "port": 80, + "ssl": false, + "public": "../../../client/dist/", + "paginate": { + "default": 10, + "max": 50 + }, + "authentication": { + "strategies": [ + "jwt", + "local" + ], + "path": "otf/api/v1/authentication", + "service": "otf/api/v1/users", + "jwt": { + "header": { + "typ": "access" + }, + "audience": "https://localhost", + "subject": "anonymous", + "issuer": "feathers", + "algorithm": "HS256", + "expiresIn": "1d" + }, + "local": { + "entity": "user", + "usernameField": "email", + "passwordField": "password" + } + }, + "rate-limit": { + "mongoStore": { + "collection": "rateLimits" + }, + "services": { + "users": { + "max": 5, + "windowMs": 60000, + "message": "User registration limit reached. Please wait before trying again." + }, + "authentication": { + "max": 1, + "windowsMs": 250000, + "message": "Authentication limit reached. Please wait before trying again." + } + } + } +} -- 2.16.6