X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/blobdiff_plain/93d87c13b5169a0a61e3906af13cf07ec8ae2a58..HEAD:/lib/config.original.php diff --git a/lib/config.original.php b/lib/config.original.php index bfa76af..6b7c342 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -3,6 +3,7 @@ * Jirafeau, your web file repository * Copyright (C) 2008 Julien "axolotl" BERNARD * Copyright (C) 2015 Jerome Jutteau + * Copyright (C) 2024 Jirafeau project (see AUTHORS.md) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -33,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. @@ -152,6 +160,11 @@ $cfg['availability_default'] = 'month'; */ $cfg['one_time_download'] = true; +/* When set to "true", the checkbox for deleting the file after the first download + * is preselected. + */ +$cfg['one_time_download_preselected'] = false; + /* Set maximal upload size expressed in MB. * »0« means unlimited upload size. */ @@ -222,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: