Added configurable user agents that get served the text version by default

This commit is contained in:
Slatian
2023-02-21 10:00:10 +01:00
parent c4379d4c19
commit c7ba9a6346
6 changed files with 71 additions and 3 deletions

View File

@ -40,3 +40,7 @@ location_database = "mmdb/GeoLite2-City.mmdb"
[template]
# Path to the template directory, can contain glob patterns
template_location = "templates"
# Prefixes of user agents that should get a text reponse by default
text_user_agents = ["curl/"]