From 6103246a73b77d4264afed927febf5eb4c38dad5 Mon Sep 17 00:00:00 2001 From: Sandybunting Date: Tue, 27 Sep 2022 16:31:08 +0000 Subject: [PATCH] Fixed and improved Docker image options. Fixed the Docker image TITLE option and added a DARK_STYLE option. Changes made to docker_config.php and the docker README --- docker/README.md | 3 ++- docker/docker_config.php | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/README.md b/docker/README.md index b30f63a..5f9dce3 100644 --- a/docker/README.md +++ b/docker/README.md @@ -42,7 +42,8 @@ Available options: - `TITLE`: set Jirafeau instance title. - `ORGANISATION`: set organisation (in ToS). - `CONTACTPERSON`: set contact person (in ToS). -- `STYLE`: apply a specific style. +- `STYLE`: apply a specific style from the media folder. +- `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. - `ENABLE_CRYPT`: set to 1 or 0 to enable or disable server side encryption. diff --git a/docker/docker_config.php b/docker/docker_config.php index 2509fd0..634d58b 100644 --- a/docker/docker_config.php +++ b/docker/docker_config.php @@ -161,11 +161,12 @@ function run_setup(&$cfg) setup_webroot($cfg); env_2_cfg_string($cfg, 'file_hash'); env_2_cfg_bool($cfg, 'preview'); - env_2_cfg_bool($cfg, 'title'); + env_2_cfg_string($cfg, 'title', false); env_2_cfg_string($cfg, 'organisation'); env_2_cfg_string($cfg, 'contactperson'); env_2_cfg_string($cfg, 'style'); 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, 'enable_crypt'); env_2_cfg_bool($cfg, 'debug'); @@ -193,4 +194,4 @@ function run_setup(&$cfg) } } -run_setup($cfg); +run_setup($cfg); \ No newline at end of file -- 2.34.1