From c232228b01dfcc5e6adbf1d8ab8c5f145eb1f536 Mon Sep 17 00:00:00 2001 From: CncAnon Date: Tue, 5 Sep 2023 21:43:04 +0300 Subject: [PATCH] Fixes #5 --- main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.js b/main.js index 0714232..ffc0617 100644 --- a/main.js +++ b/main.js @@ -5,6 +5,16 @@ const axios = require('axios'); const app = express(); const StringDecoder = require('string_decoder').StringDecoder; +const https = require('https'); + +// HOW DID YOU EVEN THINK ABOUT CHECKING FOR THIS, SG DEVS??!?! Taking gatekeeping lessons from /aicg/? +// Not that it matters much though. +const agent = new https.Agent({ + ciphers: 'TLS_AES_256_GCM_SHA384' +}); + +axios.defaults.httpsAgent = agent; + const bodyParser = require('body-parser'); app.use(bodyParser.json({ limit: '100mb' })); app.use(bodyParser.urlencoded({limit: '100mb', extended: true}));