Merge pull request #214 from the-luap/feat/configurable-upload-batch-size

feat: configurable upload batch size for reverse proxy compatibility
This commit is contained in:
Paul Nothaft
2026-03-05 22:21:29 +01:00
committed by GitHub
7 changed files with 155 additions and 1 deletions
@@ -0,0 +1,20 @@
exports.up = async function(knex) {
const exists = await knex('app_settings')
.where({ setting_key: 'general_max_upload_batch_size_mb' })
.first();
if (!exists) {
await knex('app_settings').insert({
setting_key: 'general_max_upload_batch_size_mb',
setting_value: JSON.stringify(95),
setting_type: 'general',
updated_at: new Date()
});
}
};
exports.down = async function(knex) {
await knex('app_settings')
.where({ setting_key: 'general_max_upload_batch_size_mb' })
.del();
};