Files
metrics/settings.example.json
lowlighter 9bd7da1740 Full plugins and server redesign
- Languages, issues and pr are now plugins (but enabled by default for retro-compatibility)
- Query parameters are now parsed correctly
- Redesigned server index with vue.js
2020-10-20 21:56:05 +02:00

38 lines
2.1 KiB
JSON

{
"token":"MY GITHUB API TOKEN", "//":"Your own GitHub API token (required)",
"restricted":[], "//":"List of authorized users, leave empty for unrestricted",
"cached":3600000, "//":"Cached time for generated images, 0 to disable",
"maxusers":0, "//":"Maximum number of users, 0 for unlimited",
"ratelimiter":null, "//":"Rate limiter (see express-rate-limit documentation for options)",
"port":3000, "//":"Listening port",
"optimize":true, "//":"Optimize SVG image",
"debug":false, "//":"Debug mode",
"templates":{ "//":"Template configuration",
"default":"classic", "//":"Default template",
"enabled":[], "//":"Enabled templates, leave empty to enable all templates"
},
"plugins":{ "//":"Additional plugins (optional)",
"pagespeed":{ "//":"Pagespeed plugin",
"enabled":false, "//":"Enable or disable PageSpeed metrics",
"token":"******", "//":"Pagespeed token"
},
"traffic":{ "//":"Traffic plugin (GitHub API token must be RW for this to work)",
"enabled":true, "//":"Enable or disable repositories total page views is last two weeks"
},
"lines":{ "//":"Lines plugin",
"enabled":true, "//":"Enable or disable repositories total lines added/removed"
},
"habits":{ "//":"Habits plugin",
"enabled":true, "//":"Enable or disable coding habits metrics",
"from":50, "//":"Number of activity events to base habits on (up to 100)"
},
"languages":{ "//":"Languages plugins",
"enabled":true, "//":"Enable or disable most used languages metrics (*this plugin is enabled by default)"
},
"followup":{ "//":"Follow-up plugin",
"enabled":true, "//":"Enable owned repositories issues and pull requests metrics (*this plugin is enabled by default)"
}
}
}