UNPKG

symple

Version:

Realtime messaging and presence server

42 lines (35 loc) 969 B
{ /* The port to listen on (default: 4500). If `process.env.PORT` is set, the env value will be used instead. Port 443 should always be used for SSL. */ "port" : 4500, /* 443 */ /* Session time-to-live in minutes (Redis required, default: 15 minutes) This is the duration of time before sessions expire after the client disconnects. If set to `-1` the session will never expire. */ "sessionTTL" : 15, /* Enable or disable authentication (Redis required) */ "authentication" : false, /* Enable users to dynamically join and leave rooms (Redis required) */ "dynamicRooms" : true, /* Redis configuration */ "redis" : "redis://localhost:6379", /* SSL configuration */ "ssl" : { "enabled" : false, "key" : "ssl/symple.key", "cert" : "ssl/symple.crt" }, /* CORS configuration. See https://socket.io/docs/v4/handling-cors/ */ "cors" : { "origin": true, "credentials": true } }