From 2732180ce21a98d3690fa770fb76eca08601d797 Mon Sep 17 00:00:00 2001 From: mikespub Date: Sun, 1 Sep 2024 13:32:34 +0200 Subject: [PATCH] update default config_local.php with kepubify path --- readme-vars.yml | 1 + root/defaults/config_local.php | 30 ++++++++++++++++++++---------- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/readme-vars.yml b/readme-vars.yml index 52c1a7c..446c14e 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -66,6 +66,7 @@ app_setup_block: | # changelog changelogs: + - { date: "01.09.24:", desc: "Existing users should verify: config_local.php - define $config['cops_kepubify_path'] if you want to use it" } - { date: "28.08.24:", desc: "Add kepubify tool to update metadata for Kobo - see mikespub-org/seblucas-cops#77" } - { date: "24.06.24:", desc: "Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings." } - { date: "07.05.24:", desc: "Existing users should verify: site-confs/default.conf - Fix rewriting rules default site conf." } diff --git a/root/defaults/config_local.php b/root/defaults/config_local.php index 932a9fb..482e1b8 100644 --- a/root/defaults/config_local.php +++ b/root/defaults/config_local.php @@ -32,7 +32,7 @@ */ $config['cops_use_url_rewriting'] = "0"; - /* + /* * Which header to use when downloading books outside the web directory * Possible values are : * X-Accel-Redirect : For Nginx @@ -40,12 +40,14 @@ * No value (default) : Let PHP handle the download */ - $config['cops_x_accel_redirect'] = "X-Accel-Redirect"; + $config['cops_x_accel_redirect'] = "X-Accel-Redirect"; + /* Enable cache folder * especially useful for lower power hosts */ - $config['cops_thumbnail_handling'] = ""; - $config['cops_thumbnail_cache_directory'] = "/config/cache/"; + $config['cops_thumbnail_handling'] = ""; + $config['cops_thumbnail_cache_directory'] = "/config/cache/"; + /* * Enable and configure Send To Kindle (or Email) feature. * @@ -69,10 +71,18 @@ * * You'll also need to enable Allow Less Secure Apps in you Gmail account. */ + $config['cops_mail_configuration'] = array( "smtp.host" => "", + "smtp.username" => "", + "smtp.password" => "", + "smtp.secure" => "ssl", + "address.from" => "cops@ebook.com" + ); + + /* + * Use external 'kepubify' tool to convert .epub files to .kepub.epub format for Kobo + * Example: + * $config['cops_kepubify_path'] = '/usr/bin/kepubify'; + */ + //$config['cops_kepubify_path'] = ''; + $config['cops_kepubify_path'] = '/usr/bin/kepubify'; - $config['cops_mail_configuration'] = array( "smtp.host" => "", - "smtp.username" => "", - "smtp.password" => "", - "smtp.secure" => "ssl", - "address.from" => "cops@ebook.com" -);