Spaces:
Sleeping
Sleeping
Download src/config/runtime-config.js from dangkhoa2016/Nodejs-JSON-API-Server: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/42e30c2fc13d198cc76d79446c2a4308bbca4162/src/config/runtime-config.js
- Command line
-
hf download hf://spaces/dangkhoa2016/Nodejs-JSON-API-Server@42e30c2fc13d198cc76d79446c2a4308bbca4162/src/config/runtime-config.js
-
curl -L -o runtime-config.js https://huggingface.co/spaces/dangkhoa2016/Nodejs-JSON-API-Server/resolve/42e30c2fc13d198cc76d79446c2a4308bbca4162/src/config/runtime-config.js
322 Bytes
| ; | |
| 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 }; | |