Bump request payload limits
| @@ -70,7 +70,7 @@ import { accountStorage } from './util/AccountStorage.js'; | |||
| 70 | * @returns {Promise<string>} Converted file text | 70 | * @returns {Promise<string>} Converted file text |
| 71 | */ | 71 | */ |
| 72 | 72 | ||
| 73 | const fileSizeLimit = 1024 * 1024 * 100; // 100 MB | 73 | const fileSizeLimit = 1024 * 1024 * 350; // 350 MB |
| 74 | const ATTACHMENT_SOURCE = { | 74 | const ATTACHMENT_SOURCE = { |
| 75 | GLOBAL: 'global', | 75 | GLOBAL: 'global', |
| 76 | CHARACTER: 'character', | 76 | CHARACTER: 'character', |
| @@ -110,8 +110,8 @@ app.use(helmet({ | |||
| 110 | app.use(compression()); | 110 | app.use(compression()); |
| 111 | app.use(responseTime()); | 111 | app.use(responseTime()); |
| 112 | 112 | ||
| 113 | app.use(bodyParser.json({ limit: '200mb' })); | 113 | app.use(bodyParser.json({ limit: '500mb' })); |
| 114 | app.use(bodyParser.urlencoded({ extended: true, limit: '200mb' })); | 114 | app.use(bodyParser.urlencoded({ extended: true, limit: '500mb' })); |
| 115 | 115 | ||
| 116 | // CORS Settings // | 116 | // CORS Settings // |
| 117 | const CORS = cors({ | 117 | const CORS = cors({ |