added otf-frontend default config files
authorRohan Patel <rp5811@att.com>
Thu, 26 Sep 2019 21:11:55 +0000 (17:11 -0400)
committerRohan Patel <rp5811@att.com>
Thu, 26 Sep 2019 21:12:02 +0000 (17:12 -0400)
Change-Id: I308c452ccfc0afacf9db5bd5fd9d0d2ec740bd9a
Signed-off-by: Rohan Patel <rp5811@att.com>
otf-frontend/.gitignore
otf-frontend/server/config/default.json [new file with mode: 0644]

index 91cebbb..aef7f2b 100644 (file)
@@ -111,7 +111,6 @@ typings/
 \r
 \r
 # End of https://www.gitignore.io/api/node,angular\r
 \r
 \r
 # End of https://www.gitignore.io/api/node,angular\r
-server/config/default.json\r
 \r
 # certs\r
 server/config/cert/*.pem\r
 \r
 # certs\r
 server/config/cert/*.pem\r
diff --git a/otf-frontend/server/config/default.json b/otf-frontend/server/config/default.json
new file mode 100644 (file)
index 0000000..dee3f8b
--- /dev/null
@@ -0,0 +1,52 @@
+{\r
+  "host": "0.0.0.0",\r
+  "path": "otf/api/",\r
+  "base-path": "otf/api/v1/",\r
+  "port": 80,\r
+  "ssl": false,\r
+  "public": "../../../client/dist/",\r
+  "paginate": {\r
+    "default": 10,\r
+    "max": 50\r
+  },\r
+  "authentication": {\r
+    "strategies": [\r
+      "jwt",\r
+      "local"\r
+    ],\r
+    "path": "otf/api/v1/authentication",\r
+    "service": "otf/api/v1/users",\r
+    "jwt": {\r
+      "header": {\r
+        "typ": "access"\r
+      },\r
+      "audience": "https://localhost",\r
+      "subject": "anonymous",\r
+      "issuer": "feathers",\r
+      "algorithm": "HS256",\r
+      "expiresIn": "1d"\r
+    },\r
+    "local": {\r
+      "entity": "user",\r
+      "usernameField": "email",\r
+      "passwordField": "password"\r
+    }\r
+  },\r
+  "rate-limit": {\r
+    "mongoStore": {\r
+      "collection": "rateLimits"\r
+    },\r
+    "services": {\r
+      "users": {\r
+        "max": 5,\r
+        "windowMs": 60000,\r
+        "message": "User registration limit reached. Please wait before trying again."\r
+      },\r
+      "authentication": {\r
+        "max": 1,\r
+        "windowsMs": 250000,\r
+        "message": "Authentication limit reached. Please wait before trying again."\r
+      }\r
+    }\r
+  }\r
+}\r