From: Patrick Canterino Date: Sat, 16 Nov 2024 14:09:32 +0000 (+0000) Subject: Merge branch 'bug_content_length' into 'next-release' X-Git-Tag: 4.6.1~8 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/7bff658ab883368c785f68a48f92cdfb1470be19?hp=37a47dbd255874bcdfc14f2e7a5dc1461ddd145e Merge branch 'bug_content_length' into 'next-release' Store filesize before encrypting the file See merge request jirafeau/Jirafeau!11 --- diff --git a/docker/README.md b/docker/README.md index 33c9fc0..343c69e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -2,7 +2,7 @@ ## Run Jirafeau through a pre-made Docker image -Jirafeau is a small PHP application so running it inside a docker container is pretty straightforward. +Jirafeau is a small PHP application so running it inside a Docker container is pretty straightforward. Container images are built for AMD64 and ARM64 systems and can be downloaded from our registry at `registry.gitlab.com`. ```shell docker pull registry.gitlab.com/jirafeau/jirafeau:latest @@ -49,6 +49,7 @@ Available options: - `DARK_STYLE`: apply a specific style for browsers in dark mode. - `AVAILABILITY_DEFAULT`: setup which availability shows by default. - `ONE_TIME_DOWNLOAD`: set to 1 or 0 to enable or disable one time downloads. +- `ONE_TIME_DOWNLOAD_PRESELECTED`: set to 1 or 0 to preselect the checkbox for one time downloads. - `ENABLE_CRYPT`: set to 1 or 0 to enable or disable server side encryption. - `DEBUG`: set to 1 or 0 to enable or disable debug mode. - `MAXIMAL_UPLOAD_SIZE`: maximal file size allowed (expressed in MB). @@ -86,7 +87,6 @@ It is also possible to put Jirafeau data into an already existing directory outs ```shell mkdir /tmp/jirafeau_data docker run -it --rm -p 8080:80 -v /tmp/jirafeau_data:/data registry.gitlab.com/jirafeau/jirafeau:latest - ``` ## Few notes diff --git a/docker/docker_config.php b/docker/docker_config.php index 976f366..75c6fb8 100644 --- a/docker/docker_config.php +++ b/docker/docker_config.php @@ -170,6 +170,7 @@ function run_setup(&$cfg) env_2_cfg_string($cfg, 'availability_default'); env_2_cfg_string($cfg, 'dark_style'); env_2_cfg_bool($cfg, 'one_time_download'); + env_2_cfg_bool($cfg, 'one_time_download_preselected'); env_2_cfg_bool($cfg, 'enable_crypt'); env_2_cfg_bool($cfg, 'debug'); env_2_cfg_int($cfg, 'maximal_upload_size');