blob: 8e6a8b0ac40282edf259f257d57863c76fbeb92a [file] [log] [blame]
Rohan Patelf76b3742019-09-26 17:11:55 -04001{
2 "host": "0.0.0.0",
3 "path": "otf/api/",
4 "base-path": "otf/api/v1/",
Rohan Patel6badc9d2019-11-01 16:05:47 -04005 "port": 8080,
Rohan Patelf76b3742019-09-26 17:11:55 -04006 "ssl": false,
7 "public": "../../../client/dist/",
8 "paginate": {
9 "default": 10,
10 "max": 50
11 },
12 "authentication": {
13 "strategies": [
14 "jwt",
15 "local"
16 ],
17 "path": "otf/api/v1/authentication",
18 "service": "otf/api/v1/users",
19 "jwt": {
20 "header": {
21 "typ": "access"
22 },
23 "audience": "https://localhost",
24 "subject": "anonymous",
25 "issuer": "feathers",
26 "algorithm": "HS256",
27 "expiresIn": "1d"
28 },
29 "local": {
30 "entity": "user",
31 "usernameField": "email",
32 "passwordField": "password"
33 }
34 },
35 "rate-limit": {
36 "mongoStore": {
37 "collection": "rateLimits"
38 },
39 "services": {
40 "users": {
41 "max": 5,
42 "windowMs": 60000,
43 "message": "User registration limit reached. Please wait before trying again."
44 },
45 "authentication": {
46 "max": 1,
47 "windowsMs": 250000,
48 "message": "Authentication limit reached. Please wait before trying again."
49 }
50 }
51 }
52}