mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
add server settings api
This commit is contained in:
@@ -19,6 +19,9 @@ const DEFAULTS = {
|
||||
|
||||
const KEYS = Object.keys(DEFAULTS);
|
||||
|
||||
// Hard ceiling for request bodies.
|
||||
const MAX_BODY_BACKSTOP = 500 * 1024 * 1024;
|
||||
|
||||
function parseList(raw) {
|
||||
return raw
|
||||
.split(",")
|
||||
@@ -88,4 +91,4 @@ function update(partial) {
|
||||
return getAll();
|
||||
}
|
||||
|
||||
module.exports = { DEFAULTS, KEYS, getAll, get, update };
|
||||
module.exports = { DEFAULTS, KEYS, MAX_BODY_BACKSTOP, getAll, get, update };
|
||||
|
||||
Reference in New Issue
Block a user