metasearch/config-default.toml
mat ee1572fab0
Add config options to replace parts of urls and to change their ranking weights (#14)
* add config options to replace parts of urls and change their weight

* improve config-default.toml comments

* refactor checking/replacing a bit
2024-07-16 16:42:43 -05:00

30 lines
701 B
TOML

# See src/config.rs for all of the possible options.
# The commented-out lines are examples of values you could set, not the defaults.
bind = "0.0.0.0:28019"
api = false
[ui]
# engine_list_separator = true
# show_version_info = true
# stylesheet_url = "/themes/catppuccin-mocha.css"
[image_search]
# enabled = true
[engines]
# numbat = false
# fend = true
[urls.replace]
# "www.reddit.com" = "old.reddit.com"
# "medium.com" = "scribe.rip"
# ".medium.com" = "scribe.rip"
[urls.weight]
# These are checked after applying replacements. Setting the weight to 0 (or any
# negative number) completely hides the result. Longer matches have a higher
# priority.
# "quora.com" = 0.1
# ".quora.com" = 0.1