Lets configure our axios instance with a timeout. This should help reduce the risk of our service keeping growing connection count and then falling over.
This should not be shorter than the mediawiki -> node request, configured in T215912, so that we don't end too early.
Could also be related to: T217035
Note:
The timeout for the mediawiki->node request before T215912 is the default given by: $wgHTTPTimeout which is 25s.
Technical notes:
- this should configure only the server-side http requests (not the client)
- should be configurable via .env; falls back to a default if not configured
- see https://github.com/axios/axios#axioscreateconfig for axios timeout configuration
- should be set to the same default as the mediawiki -> node request timeout (3s)