-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml.example
55 lines (47 loc) · 2.46 KB
/
config.toml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# replace this with your key from https://www.nexusmods.com/users/myaccount?tab=api
apikey = "pasteyourNexusModsapikeyhere"
# interval in seconds between polling
# the Nexus Mods API limits your API requests to 100 per hour, the program will take care not to exceed this limit.
# this may mean that the actual interval is much longer, depending on how many mods you configure to track:
# per mod, 2 API requests are needed, so the minimum interval is 2*60*60/100=72 seconds. multiply by number of mods to get your actual minimum.
# 300 = 5 minutes seem a reasonable default, be advised to use the same interval your scraper uses.
# set this to 0 to always update as soon as possible.
"min update interval" = 300
# these are all file categories available on Nexus Mods. by default, all will be tracked. choose from these values below.
# you may modify this default list, it will replace "default" and [] choices below.
"default categories" = ["main", "update", "optional", "old_version", "miscellaneous"]
# start a new game section with the game name in square brackets like this:
# game name as in the Nexus Mods URL: https://www.nexusmods.com/masseffect
[masseffect]
# add a list of the IDs of mods you want to track and the categories of files you want to track for each mod
# e.g. MEUITM's URL: https://www.nexusmods.com/masseffect/mods/1 has ID 1 at the end of it's URL
# and at the time of writing has 2 main files we could track
1 = "main"
# you can select a single file category by using a simple string (above), or list of one string (below)
69 = ["old_version"]
# you can select default categories by using an empty list [] or "default":
83 = []
144 = "default"
# start another game section like this:
[masseffect2]
# select multiple categories using a list:
245 = ["main", "update"]
[masseffect3]
# select all categories using "all":
773 = "all"
# prometheus options:
# set the port on which your stats will be published. point your prometheus scraper to this port.
# [prometheus]
# port = 8000
# timescaleDB options:
# if you want to use timescaleDB (recommended), set any values deviating from the psycopg2 defaults here, e.g.:
# [timescaleDB]
# host = "localhost"
# port = 5432
# dbname = "nm-stats"
# user = "nm-stats"
# password = "mypassword"
# additional options:
# if for some reason necessary, you can uncomment and modify the following settings
# "game id file" = "game-ids.json"
# "mod stats timestamp file" = "last-mod-stats-update.json"