diff options
author | bobzel <zzzman@gmail.com> | 2020-05-17 23:38:21 +0000 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-05-17 23:38:21 +0000 |
commit | b24fd078149d8ee9042a279cbe7498f6c3f5c82f (patch) | |
tree | c3a74a386f0f6747ca12229d2d6dcc3e5895bfa2 /src/server/index.ts | |
parent | 9c3d461a9642a4596c55f642af2b55e186b0fe20 (diff) |
release server integration with ssl
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 7ac032ed3..65a9f10a7 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -11,9 +11,8 @@ import * as qs from 'query-string'; import UtilManager from './ApiManagers/UtilManager'; import { SearchManager } from './ApiManagers/SearchManager'; import UserManager from './ApiManagers/UserManager'; -import { WebSocket } from './websocket'; import DownloadManager from './ApiManagers/DownloadManager'; -import { GoogleCredentialsLoader } from './apis/google/CredentialsLoader'; +import { GoogleCredentialsLoader, SSLCredentialsLoader } from './apis/google/CredentialsLoader'; import DeleteManager from "./ApiManagers/DeleteManager"; import PDFManager from "./ApiManagers/PDFManager"; import UploadManager from "./ApiManagers/UploadManager"; @@ -26,6 +25,7 @@ import { DashSessionAgent } from "./DashSession/DashSessionAgent"; import SessionManager from "./ApiManagers/SessionManager"; import { AppliedSessionAgent } from "./DashSession/Session/agents/applied_session_agent"; +export const AdminPriviliges: Map<string, boolean> = new Map(); export const onWindows = process.platform === "win32"; export let sessionAgent: AppliedSessionAgent; export const publicDirectory = path.resolve(__dirname, "public"); @@ -41,6 +41,7 @@ async function preliminaryFunctions() { await DashUploadUtils.buildFileDirectories(); await Logger.initialize(); await GoogleCredentialsLoader.loadCredentials(); + SSLCredentialsLoader.loadCredentials(); GoogleApiServerUtils.processProjectCredentials(); if (process.env.DB !== "MEM") { await log_execution({ @@ -121,10 +122,6 @@ function routeSetter({ isRelease, addSupervisedRoute, logRegistrationOutcome }: }); logRegistrationOutcome(); - - // initialize the web socket (bidirectional communication: if a user changes - // a field on one client, that change must be broadcast to all other clients) - WebSocket.initialize(isRelease); } |