add a timeout for DB queries

This commit is contained in:
Sarah Hoffmann
2023-08-24 14:57:33 +02:00
parent 2762c45569
commit 06a974df36
3 changed files with 26 additions and 2 deletions

View File

@@ -214,6 +214,10 @@ NOMINATIM_SERVE_LEGACY_URLS=yes
# of connections _per worker_.
NOMINATIM_API_POOL_SIZE=10
# Timeout is seconds after which a single query to the database is cancelled.
# When empty, then timeouts are disabled.
NOMINATIM_QUERY_TIMEOUT=60
# Search elements just within countries
# If, despite not finding a point within the static grid of countries, it
# finds a geometry of a region, do not return the geometry. Return "Unable