[Breaking] Change config.js to config.json

This commit is contained in:
2019-07-27 20:40:50 +05:30
parent 240a9f7fde
commit af28e0c5d9
3 changed files with 2 additions and 1 deletions

46
sample.config.json Normal file
View File

@@ -0,0 +1,46 @@
{
"host": "0.0.0.0",
"port": 7777,
"keyLength": 10,
"maxLength": 400000,
"staticMaxAge": 86400,
"recompressStaticAssets": true,
"logging": [
{
"level": "verbose",
"type": "Console",
"colorize": true
}
],
"keyGenerator": {
"type": "phonetic"
},
"rateLimits": {
"categories": {
"normal": {
"totalRequests": 500,
"every": 60000
}
}
},
"storage": {
"type": "memcached",
"host": "127.0.0.1",
"port": 11211,
"expire": 2592000
},
"documents": {
"about": "./about.md"
}
}