wiktorn / Overpass-API

Overpass API docker image
MIT License
134 stars 48 forks source link

Option for (currently static) nginx timeouts? #46

Closed ghowen closed 4 years ago

ghowen commented 4 years ago

First of all @wiktorn , thank you for this Docker image! Even for someone who is just starting to learn Docker it was very easy to setup an overpass server with the help of this image.

While I was running some tests today querying my docker overpass instance through wget, I noticed that the connection to the server was reset roughly every 16 minutes. As my query needs to run longer (this is the main reason for my private overpass instance), wget then started a second query which resulted in the same two queries being executed on the server at the same time with an offset of 16 mins.

The culprit in this case is the fastcgi_read_timeout 1000s; directive in nginx.conf.

So my question/feature request is to pass that value as an argument to docker run if possible. Alternatively one could think about a higher default value (like 24 hours or so).

Thanks and best regards!

[Edit] Changed keepalive_timeout to fastcgi_read_timeout.

wiktorn commented 4 years ago

Thank you for elaborate bug report and testing, what actually needs to be changed, that helped a lot. Bear in mind, that images needs some time to regenerate on Docker Hub (6h or more AFAIR).