bundles/grafana: increase proxy_read_timeout for /api/ds/query
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
ea7a8236ce
commit
d9d98116e6
2 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,10 @@ def nginx(metadata):
|
||||||
'/': {
|
'/': {
|
||||||
'target': 'http://127.0.0.1:21010',
|
'target': 'http://127.0.0.1:21010',
|
||||||
},
|
},
|
||||||
|
'/api/ds/query': {
|
||||||
|
'target': 'http://127.0.0.1:21010',
|
||||||
|
'proxy_read_timeout': 300,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'website_check_path': '/login',
|
'website_check_path': '/login',
|
||||||
'website_check_string': 'Grafana',
|
'website_check_string': 'Grafana',
|
||||||
|
|
|
@ -107,6 +107,7 @@ server {
|
||||||
proxy_set_header X-Script-Name ${location};
|
proxy_set_header X-Script-Name ${location};
|
||||||
% endif
|
% endif
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
proxy_read_timeout ${options.get('proxy_read_timeout', 60)};
|
||||||
client_max_body_size ${options.get('max_body_size', '5M')};
|
client_max_body_size ${options.get('max_body_size', '5M')};
|
||||||
% elif 'redirect' in options:
|
% elif 'redirect' in options:
|
||||||
return ${options.get('mode', 302)} ${options['redirect']};
|
return ${options.get('mode', 302)} ${options['redirect']};
|
||||||
|
|
Loading…
Reference in a new issue