File size: 322 Bytes
e9d5bbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';

const store = new Map([
  ['rateLimitEnabled', true],
  ['rateLimitMax', 100],
  ['rateLimitWindowMs', 60000],
  ['rateLimitWindowSec', 60],
]);

const runtimeConfig = {
  get(key) {
    return store.get(key);
  },
  set(key, value) {
    store.set(key, value);
  },
};

module.exports = { runtimeConfig };