new(core.gbapp): New API endpoint.

This commit is contained in:
Rodrigo Rodriguez 2024-04-17 12:02:56 -03:00
parent f830b01ac9
commit 0537e6f173

View file

@ -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)