diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.pkgdb.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.pkgdb.conf new file mode 100644 index 0000000000..c1cf163030 --- /dev/null +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.pkgdb.conf @@ -0,0 +1,39 @@ +# Temporary fix for pkgdb performance issue. Fix for pkgdb #206 + +RewriteEngine On +RewriteCond %{QUERY_STRING} tg_paginate_limit=0 +RewriteRule ^/pkgdb/builds/name/\* /pkgdb/builds/name/*?tg_paginate_limit=50 [R] + +RequestHeader set X-Scheme https early + + + +RequestHeader set CP-Location {{localpath}} + +AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + + ExpiresActive On + ExpiresDefault "access plus 5 days" + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + + ExpiresActive On + ExpiresDefault "access plus 5 days" + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + + ExpiresActive On + ExpiresDefault "access plus 5 days" + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + +Header unset Set-Cookie + + +ProxyPass {{localpath}} {{proxyurl}}{{remotepath}} +ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}