()
| 18 | } |
| 19 | |
| 20 | export function get (): DeepstreamConfig { |
| 21 | return { |
| 22 | /* |
| 23 | * General |
| 24 | */ |
| 25 | libDir: null, |
| 26 | serverName: getUid(), |
| 27 | showLogo: false, |
| 28 | logLevel: LOG_LEVEL.INFO, |
| 29 | dependencyInitializationTimeout: 2000, |
| 30 | // defaults to false as the event is captured via commander when run via binary or standalone |
| 31 | exitOnFatalError: false, |
| 32 | |
| 33 | /* |
| 34 | * Connection Endpoints |
| 35 | */ |
| 36 | connectionEndpoints: [ |
| 37 | { |
| 38 | type: 'ws-binary', |
| 39 | options: { ...WebSocketDefaultOptions, urlPath: '/deepstream' } |
| 40 | }, |
| 41 | { |
| 42 | type: 'ws-text', |
| 43 | options: { ...WebSocketDefaultOptions, urlPath: '/deepstream-v3' } |
| 44 | }, |
| 45 | { |
| 46 | type: 'ws-json', |
| 47 | options: { ...WebSocketDefaultOptions, urlPath: '/deepstream-json' } |
| 48 | }, |
| 49 | { |
| 50 | type: 'http', |
| 51 | options: { |
| 52 | allowAuthData: true, |
| 53 | enableAuthEndpoint: true, |
| 54 | authPath: '/api/auth', |
| 55 | postPath: '/api', |
| 56 | getPath: '/api' |
| 57 | } |
| 58 | }, |
| 59 | { |
| 60 | type: 'mqtt', |
| 61 | options: { |
| 62 | port: 1883, |
| 63 | host: '0.0.0.0', |
| 64 | idleTimeout: 180000, |
| 65 | |
| 66 | /* |
| 67 | * Security |
| 68 | */ |
| 69 | unauthenticatedClientTimeout: 180000, |
| 70 | } |
| 71 | } |
| 72 | ], |
| 73 | |
| 74 | logger: { |
| 75 | type: 'default', |
| 76 | options: {} |
| 77 | }, |
no test coverage detected