mirror of https://gitgud.io/cncanon/sg-proxy.git
Fixes #5
This commit is contained in:
parent
5e15932bf8
commit
c232228b01
10
main.js
10
main.js
|
@ -5,6 +5,16 @@ const axios = require('axios');
|
||||||
const app = express();
|
const app = express();
|
||||||
const StringDecoder = require('string_decoder').StringDecoder;
|
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');
|
const bodyParser = require('body-parser');
|
||||||
app.use(bodyParser.json({ limit: '100mb' }));
|
app.use(bodyParser.json({ limit: '100mb' }));
|
||||||
app.use(bodyParser.urlencoded({limit: '100mb', extended: true}));
|
app.use(bodyParser.urlencoded({limit: '100mb', extended: true}));
|
||||||
|
|
Loading…
Reference in New Issue