This commit is contained in:
CncAnon 2023-09-05 21:43:04 +03:00
parent 5e15932bf8
commit c232228b01
1 changed files with 10 additions and 0 deletions

10
main.js
View File

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