diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 74afa85e09..867bb724fa 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -754,5 +754,6 @@ remotepath: / localpath: / proxyurl: http://debuginfod01:8002 + proxyopts: "connectiontimeout=600 timeout=600 keepalive=on" tags: debuginfod diff --git a/roles/httpd/reverseproxy/tasks/main.yml b/roles/httpd/reverseproxy/tasks/main.yml index 23e37d9399..9ed5604877 100644 --- a/roles/httpd/reverseproxy/tasks/main.yml +++ b/roles/httpd/reverseproxy/tasks/main.yml @@ -5,6 +5,7 @@ # - proxyurl # - rewrite # - keephost +# - proxyopts - name: Set OpenShift information if not preconfigured set_fact: diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.conf index 2c3a2dd956..148175b004 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.conf @@ -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 %} diff --git a/roles/httpd/reverseproxy/vars/main.yml b/roles/httpd/reverseproxy/vars/main.yml index 7bf5f2354f..d88f2e67d1 100644 --- a/roles/httpd/reverseproxy/vars/main.yml +++ b/roles/httpd/reverseproxy/vars/main.yml @@ -7,3 +7,4 @@ header_scheme: false keephost: false targettype: plain http_not_https_yes_this_is_insecure_and_i_feel_bad: false +proxyopts: ""