diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-04 13:02:54 -0800 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-04 13:02:54 -0800 |
commit | 987b512d2564710e5c5c7fd2eeff1914af8180dd (patch) | |
tree | 04862f06f5d410a316be7d3149e579e541b1ef52 /src/server/Session/session_config_schema.ts | |
parent | 804e2f4f1d20551799a21e2fdf8e5b2b7fdebe02 (diff) |
factored out socket and server ports to config, added kill response ;)
Diffstat (limited to 'src/server/Session/session_config_schema.ts')
-rw-r--r-- | src/server/Session/session_config_schema.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/Session/session_config_schema.ts b/src/server/Session/session_config_schema.ts index a5010055a..03009a351 100644 --- a/src/server/Session/session_config_schema.ts +++ b/src/server/Session/session_config_schema.ts @@ -1,7 +1,7 @@ import { Schema } from "jsonschema"; const emailPattern = /^(([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+)?$/g; -const localPortPattern = /http\:\/\/localhost:\d+\/[a-zA-Z]+/g; +const localPortPattern = /\/[a-zA-Z]+/g; const properties = { recipients: { @@ -12,7 +12,9 @@ const properties = { }, minLength: 1 }, - heartbeat: { + serverPort: { type: "number" }, + socketPort: { type: "number" }, + heartbeatRoute: { type: "string", pattern: localPortPattern }, |