|
1 |
| -# NyaaStats configuration |
2 |
| -web: |
3 |
| - title: Nyaa Stats # website title |
4 |
| - servername: Minecraft Server # Server Name |
5 |
| - homepage: https://minecraft.example.com # Your homepage |
| 1 | +# NYAA-STATS CONFIGURATION FILE |
6 | 2 |
|
| 3 | +# Grabber (main program) configuration |
7 | 4 | render:
|
8 |
| - crafatar: https://crafatar.com # crafatar service host, required |
9 |
| - level: data/level.dat # file path here, required |
10 |
| - playerdata: data/playerdata # directory path here, required |
11 |
| - stats: data/stats # directory path here, required |
12 |
| - advancements: data/advancements # advancements path here, required |
13 |
| - whitelist: whitelist.json # file path here, leave blank to disable |
14 |
| - banned-players: banned-players.json # file path here, leave blank to disable |
15 |
| - render-banned: false # do not render banned players |
16 |
| - output: web/public/data # directory path here, required |
| 5 | + # Data sources |
| 6 | + |
| 7 | + # [Required] `level.dat` file path. Example: "/opt/minecraft/world/level.dat" |
| 8 | + level: data/level.dat |
| 9 | + # [Required] `playerdata` directory path. Example: "/opt/minecraft/world/playerdata" |
| 10 | + playerdata: data/playerdata |
| 11 | + # [Required] `stats` directory path. Example: "/opt/minecraft/world/stats" |
| 12 | + stats: data/stats |
| 13 | + # [Required] `advancements` directory path. Example: "/opt/minecraft/world/advancements" |
| 14 | + advancements: data/advancements |
| 15 | + # Whether to only process whitelisted players. Possible values: |
| 16 | + # {string} - `whitelist.json` file path. Example: "/opt/minecraft/whitelist.json" |
| 17 | + # (unset) - Disable this feature (to process all reachable players) |
| 18 | + whitelist: whitelist.json |
| 19 | + # Banned UUID list. Possible values: |
| 20 | + # {string} - `banned-players.json` file path. Example: "/opt/minecraft/banned-players.json" |
| 21 | + # (unset) - Disable this feature (to assume no bans) |
| 22 | + banned-players: banned-players.json |
| 23 | + # Whether to render banned players. Default value: `false` |
| 24 | + render-banned: false |
| 25 | + # [Required] Crafatar service URL, used for player avatar/skin model generating |
| 26 | + crafatar: https://crafatar.com |
| 27 | + |
| 28 | + # Output |
| 29 | + |
| 30 | + # [Required] Output data directory path (absolute or relative to runtime `config.yml`) |
| 31 | + # Example: "webroot/data" |
| 32 | + output: web/public/data |
| 33 | + # Whether to prompt confirmation to clear output directory. You may want to set `false` if you're |
| 34 | + # using cronjob. Possible values: |
| 35 | + # `true` | (unset) - Prompt confirmation. You can choose yes or no to output directory clearing |
| 36 | + # `false` - Disable this feature (will not clear output directory) |
| 37 | + confirm-clear-data: true |
| 38 | + # [Deprecated] |
17 | 39 | time-format: # time format on display, details http://momentjs.com/docs/#/displaying/format/
|
18 | 40 | full: dddd, MMMM Do, YYYY HH:mm:ss ZZ
|
19 | 41 | short: MMMM Do, YYYY
|
20 | 42 | compact: YYYY-M-D HH:mm:ss
|
21 |
| - # prompt confirmation to remove old data. |
22 |
| - # Set to false if you are using cronjob, |
23 |
| - # true when you run it manually. |
24 |
| - # data directory will be cleared when manipulating new data. |
25 |
| - confirm-clear-data: true |
26 | 43 |
|
| 44 | +# API usage configuration |
27 | 45 | api:
|
28 |
| - ratelimit: 2 # set to 1 request per sec as per mojang api rate limit |
| 46 | + # [Required] Mojang API request rate limit (N req per second) |
| 47 | + ratelimit: 2 |
| 48 | + |
| 49 | +# Web app configuration |
| 50 | +web: |
| 51 | + # [Required] Web app title, will be displayed at page header and as window title |
| 52 | + title: Nyaa Stats |
| 53 | + # [Required] Server name, will be displayed at welcome section and page footer |
| 54 | + servername: Minecraft Server |
| 55 | + # [Required] Server homepage URL, will be displayed at welcome section |
| 56 | + homepage: https://minecraft.example.com |
0 commit comments