diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-05 14:50:54 -0800 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-05 14:50:54 -0800 |
commit | d4e7e354ec9209f117054ead9970ea9f180dd17b (patch) | |
tree | f36a17978ef9595f5ee1f4255299b2a51fcda73a /src/server/Session/session_config_schema.ts | |
parent | ba1a85c4833820bc228779aa9187315d8b711268 (diff) |
port config, customizers
Diffstat (limited to 'src/server/Session/session_config_schema.ts')
-rw-r--r-- | src/server/Session/session_config_schema.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/server/Session/session_config_schema.ts b/src/server/Session/session_config_schema.ts index 03009a351..34d1ad523 100644 --- a/src/server/Session/session_config_schema.ts +++ b/src/server/Session/session_config_schema.ts @@ -3,7 +3,7 @@ import { Schema } from "jsonschema"; const emailPattern = /^(([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+)?$/g; const localPortPattern = /\/[a-zA-Z]+/g; -const properties = { +const properties: { [name: string]: Schema } = { recipients: { type: "array", items: { @@ -12,8 +12,15 @@ const properties = { }, minLength: 1 }, - serverPort: { type: "number" }, - socketPort: { type: "number" }, + ports: { + type: "object", + properties: { + server: { type: "number" }, + socket: { type: "number" } + }, + required: ["server"], + additionalProperties: true + }, heartbeatRoute: { type: "string", pattern: localPortPattern |