Allow configuration of math expression rendering time

Problem to solve

MAX_RENDER_TIME_MS is hardcoded to 2000ms due to an issue with resource exhaustion.

This is a problem for any expressions that need a longer render time or private installations where the risk is limited.

Proposal

Allow instance administrators to configure the max render time.

Clientside resource Exhausting by exploiting gitlab math rendering

Specific File/Line

Note/Discussion on Render Time

Internal ZD