owntracks / frontend

🌍 Web interface for OwnTracks built with Vue.js
MIT License
380 stars 53 forks source link

nginx: increase read timeout #124

Closed maximbaz closed 3 months ago

maximbaz commented 3 months ago

The default value is 60 seconds. I wanted to load a couple of years data, which on my setup takes recorder 3 minutes to respond, so nginx was aborting the request. Increasing it to 10 minutes, because it ought to be enough for anybody :tm: :grin: (jokes aside, feel free to pick another constant you like more).

Unfortunately it doesn't help me actually see a map of my travels, as the web doesn't seem to handle that amount of data:

RangeError: too many arguments provided for a function call ... (stack trace of minified javascript)

I don't know if this is a use-case you want to support (in which case we can continue investigating this separately), but I feel like increasing the timeout is useful in any case, especially for smaller & slower servers.

jpmens commented 3 months ago

@maximbaz I'd appreciate if you could open an issue for the Recorder (at https://github.com/owntracks/recorder) indicating that the API is "slow" for your use-case.

If possible we'd also like to know roughly how many records the API has delivered in the 3minutes.

We might be able to do something about API performance.