X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/blobdiff_plain/42fe0291ef650140d5c712932d496c81fac18933..HEAD:/lib/config.original.php diff --git a/lib/config.original.php b/lib/config.original.php index 8aec857..6b7c342 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -34,6 +34,13 @@ $cfg['web_root'] = ''; */ $cfg['var_root'] = ''; +/* Activating 'use_shortlinks' will allow you to use shortened download links + * This requires a web server that supports URL rewriting, like Apache with mod_rewrite. + * If you are using Apache, copy the provided '.htaccess.sample' file in the root directory of + * Jirafeau and store it as '.htaccess'. For other web servers, manual configuration is required. + */ +$cfg['use_shortlinks'] = false; + /* Language - choose between 'auto' or any language located in the /lib/locales/ folder. * The mode »auto« will cause the script to detect the user's browser information * and offer a matching language, or use »en« if it is not available. @@ -228,16 +235,20 @@ $cfg['installation_done'] = false; */ $cfg['debug'] = false; -/** Set Jirafeau's maximal upload chunk +/* Set Jirafeau's maximal upload chunk * When Jirafeau upload a large file, Jirafeau sends several data chunks to fit server's capabilities. * Jirafeau tries to upload each data chunk with the maximal size allowed by PHP (post_max_size and upload_max_filesize). - * However, too large PHP configuration values are not needed and could induce unwanted side effects (see #303). + * However, too large PHP configuration values are not needed and could induce unwanted side effects + * (see https://gitlab.com/mojo42/Jirafeau/-/issues/303). + * This parameter should set to something less or equal to 5000000 (5MB), since high value can cause problems in + * Chromium based browsers with HTTP/3 on the web server enabled + * (see https://gitlab.com/jirafeau/Jirafeau/-/issues/40). * This parameter set Jirafeau's own maximal chunk size with a reasonable value. * Option is only used for async uploads and won't be used for browsers without html5 support. * You should not touch this parameter unless you have good reason to do so. Feel free to open an issue to ask questions. * Set to 0 to remove limitation. */ -$cfg['max_upload_chunk_size_bytes'] = 100000000; // 100MB +$cfg['max_upload_chunk_size_bytes'] = 5000000; // 100MB /* Set password requirement policy for downloading files * Possible values: