From 0537e6f17308676f90448615d2c1d1d268166009 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Wed, 17 Apr 2024 12:02:56 -0300 Subject: [PATCH] new(core.gbapp): New API endpoint. --- src/app.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app.ts b/src/app.ts index 44fd2e95..9af6044e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -59,7 +59,7 @@ import * as winston from 'winston-logs-display'; import { RootData } from './RootData.js'; import { GBSSR } from '../packages/core.gbapp/services/GBSSR.js'; import { Mutex } from 'async-mutex'; -import {httpProxy} from 'http-proxy'; +import httpProxy from 'http-proxy'; /** * General Bots open-core entry point. @@ -311,14 +311,6 @@ export class GBServer { if (process.env.CERTIFICATE_PFX) { - // var options = { - // changeOrigin: true, - // target: { - // https: true - // } - // } - // httpProxy.createServer(443, 'www.google.com', options).listen(8001); - const options1 = { passphrase: process.env.CERTIFICATE_PASSPHRASE, pfx: fs.readFileSync(process.env.CERTIFICATE_PFX)