X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/208418c2e083ff46b0de2e5db64844db68112cc1..41cde93bc152ccd48b5fc25d652d288a6a0af016:/lib/config.original.php diff --git a/lib/config.original.php b/lib/config.original.php index 736790a..1a2c0cc 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -163,6 +163,19 @@ $cfg['proxy_ip'] = array(); */ $cfg['file_hash'] = 'md5'; +/* Work around that LiteSpeed truncates large files when downloading. + * Only for use with the LiteSpeed web server! + * An internal redirect is made using X-LiteSpeed-Location instead + * of streaming the file from PHP. + * Limitations: + * - The Jirafeau files folder has to be placed under the document root and should be + * protected from unauthorized access using rewrite rules. + * See https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:internal-redirect#protection_from_direct_access + * - Incompatible with server side encryption. + * - Incompatible with one time download. + */ +$cfg['litespeed_workaround'] = false; + /* Required flag to test if the installation is already installed * or needs to start the installation script */