wiktorn / Overpass-API

Overpass API docker image
MIT License
133 stars 47 forks source link

configure "allow-duplicate-queries" through env var / fix healthcheck script #116

Closed lukey78 closed 8 months ago

lukey78 commented 8 months ago

According to this post the dispatcher now defaults to prevent duplicate queries. This can be turned off with the option "--allow-duplicate-queries=yes", but is not yet configurable through ENV vars.

This PR provides this option.

Second, the default "healthcheck" script fails because it always does the same (thus duplicate) query to node 1. This PR queries a random node in the healthcheck script if duplicate queries are not allowed.

wiktorn commented 8 months ago

Thank you very much for that. The images are building, they should be ready soon.