proxies/debuginfod: allow proxyopts

debuginfod can take O(60s) to run certain webapi queries, so the httpd
mod_proxy default timeouts are too short.  Introduce an ansible
variable "proxyopts", expanded into the httpd ProxyPass and
ProxyPassReverse configuration lines.  Default to "", but set it
with pretty generous limits for debuginfod only.
This commit is contained in:
Frank Ch. Eigler 2021-04-08 12:17:07 -04:00 committed by kevin
parent 61af6f34ca
commit c37d51d236
4 changed files with 5 additions and 2 deletions

View file

@ -754,5 +754,6 @@
remotepath: /
localpath: /
proxyurl: http://debuginfod01:8002
proxyopts: "connectiontimeout=600 timeout=600 keepalive=on"
tags: debuginfod

View file

@ -5,6 +5,7 @@
# - proxyurl
# - rewrite
# - keephost
# - proxyopts
- name: Set OpenShift information if not preconfigured
set_fact:

View file

@ -64,6 +64,6 @@ RewriteRule .* "balancer://{{ balancer_name }}-websocket%{REQUEST_URI}" [P]
ProxyPass {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}"
ProxyPassReverse {{ localpath }} "balancer://{{balancer_name}}{{remotepath}}"
{% else %}
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}}
ProxyPass {{ localpath }} {{ proxyurl }}{{remotepath}} {{ proxyopts }}
ProxyPassReverse {{ localpath }} {{ proxyurl }}{{remotepath}} {{ proxyopts }}
{% endif %}

View file

@ -7,3 +7,4 @@ header_scheme: false
keephost: false
targettype: plain
http_not_https_yes_this_is_insecure_and_i_feel_bad: false
proxyopts: ""