Rohan Patel | f76b374 | 2019-09-26 17:11:55 -0400 | [diff] [blame] | 1 | {
|
| 2 | "host": "0.0.0.0",
|
| 3 | "path": "otf/api/",
|
| 4 | "base-path": "otf/api/v1/",
|
Rohan Patel | 6badc9d | 2019-11-01 16:05:47 -0400 | [diff] [blame^] | 5 | "port": 8080,
|
Rohan Patel | f76b374 | 2019-09-26 17:11:55 -0400 | [diff] [blame] | 6 | "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 | }
|