Golbat Configuration
This documentation outlines all available configuration keys for Golbat. It is important to note that the presence of a configuration key does not necessitate its specification in your config.toml file. The advised approach is to start with the standard configuration file from the repository. Only append additional keys to this base file if there is a need to alter Golbat's default operational parameters.
This page is still under construction
Root Section
port = 9001 # Listening port for golbat
#grpc_port = 50001 # Listening port for gRPC.
raw_bearer = "" # Raw bearer (password) required
api_secret = "golbat" # Golbat secret required on api calls (blank for none)
pokemon_memory_only = false # Use in-memory storage for pokemon only. This only disabled Golbat from writing to the Pokemon Table. The in memory tracking is always enabled.Koji Section
[koji]
url = "http://{koji_url}/api/v1/geofence/feature-collection/{golbat_project}"
bearer_token = "secret"Cleanup Section
[cleanup]
pokemon = true # Keep pokemon table is kept nice and short
incidents = true # Remove incidents after expiry
quests = true # Remove quests after expiry
stats = true # Enable/Disable stats history
stats_days = 7 # Remove entries from ["pokemon_stats", "pokemon_shiny_stats", "pokemon_iv_stats", "pokemon_hundo_stats", "pokemon_nundo_stats" after x days
device_hours = 24 # Remove devices from in memory after not seen for x hoursLogging Section
[logging]
debug = false
save_logs = true
max_size = 50 # Size in MB
max_backups = 10 # Amount of files to keep
max_age = 30 # Day(s) to keep files
compress = true # Compress to gz archiveDatabase section
[database]
user = "" # Database username
password = "" # Database password
address = "127.0.0.1:3306" # Address with port for the database
db = "" # Database table name
max_pool = 100 # Max pool connection to allocate to the databasePVP Section
[pvp]
enabled = true
include_hundos_under_cap = falseScan Rules Section
⭐ Advanced Option ⭐
With Scan Rules you can modify the behavior globally for all areas, for specific areas or specific scanner 'modes'. These will be processed in order, first match applies - and allows disabling of processing certain types of game objects.
A global scan rule example:
[[scan_rules]]
wild_pokemon = false # disables Pokémon without iv from the gmo (waits for encounter)
nearby_pokemon = false # disables cell/pokestop PokémonHere the main area would not process nearby pokemon. Messages arriving in 'scout' mode would have everything processed; and the default would not process any pokemon (so outside main area not delivered by the scout service)
[[scan_rules]]
areas = ["MainArea"]
nearby_pokemon = false
[[scan_rules]]
context = ["Scout"]
[[scan_rules]]
pokemon = falseExample with the use of context for various scanner 'modes':
[[scan_rules]]
context = ["Quest"]
[[scan_rules]]
context = ["Fort"]
pokemon = false
nearby_pokemon = false
wild_pokemon = false
[[scan_rules]]
context = ["Invasion"]
pokemon = false
nearby_pokemon = false
wild_pokemon = false
[[scan_rules]]
context = ["Pokemon"]
nearby_pokemon = false| Key | Description |
|---|---|
pokemon | any pokemon processing (also disables spawnpoints) |
wild_pokemon | process wild pokemon from GMO |
nearby_pokemon | process nearby pokemon from GMO |
weather | process weather in GMO |
gyms | process gyms in GMO |
pokestop | process pokestops in GMO |
cells | process cell updates (disabling this also disables automatic fort clearance) |
Sentry Section
Pyroscope Section
Test Fort In Memory Section
Tuning Section
⭐ Advanced Option ⭐
[tuning]
extended_timeout = true
max_pokemon_results = 3000Prometheus Section
[prometheus]
enabled = false # Enable or disable the Prometheus endpoint for external reportingWebhook section
You can specify more than one webhook destination by including the [[webhooks]] section multiple times. The hook types can optionally be filtered by using the types array
[[webhooks]]
url = "http://localhost:4201"
# types if specified can be...
# types = ["pokemon", "pokemon_iv", "pokemon_no_iv", "gym", "invasion", "quest", "pokestop", "raid", "weather", "fort_update"]
# "pokemon" includes both with ivs and without. "pokemon_iv" will only be encountered pokemon. "pokemon_no_iv" may be nearby pokemon that have not been encountered (yet).
#[[webhooks]]
#url = "http://localhost:4202"
#types = ["raid"]
#[[webhooks]]
#url = "http://localhost:4202"
#types = ["raid"]
#areas = ["London/*", "*/Harrow", "Harrow"]