-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathlocal.php
More file actions
112 lines (102 loc) · 3.32 KB
/
local.php
File metadata and controls
112 lines (102 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
if (!isset($config)) {
$config = [];
}
/*
***************************************************
* Please read config/default.php for all possible
* configuration items.
* For changes in config/default.php see CHANGELOG.md
* on the upstream project site.
* https://github.com/mikespub-org/seblucas-cops/blob/main/config/default.php
***************************************************
*/
/*
* The directory containing calibre's metadata.db file, with sub-directories
* containing all the formats.
* BEWARE : it has to end with a /
*/
$config['calibre_directory'] = '/books/';
/*
* Catalog's title
*/
$config['cops_title_default'] = "COPS";
/*
* Which header to use when downloading books outside the web directory
* Possible values are :
* X-Accel-Redirect : For Nginx
* X-Sendfile : For Lightttpd or Apache (with mod_xsendfile)
* No value (default) : Let PHP handle the download
*/
$config['cops_x_accel_redirect'] = "X-Accel-Redirect";
/*
* Map /books/ to internal redirect location for COPS 4.2+
*/
$config['cops_x_accel_mapping'] = [
'/books/' => '/_redirect_/',
];
/* Enable cache folder
* especially useful for lower power hosts
*/
$config['cops_thumbnail_handling'] = "";
$config['cops_thumbnail_cache_directory'] = "/config/cache/";
/*
* Enable and configure Send To Kindle (or Email) feature.
*
* Don't forget to authorize the sender email you configured in your Kindle's Approved Personal Document E-mail List.
*
* If you want to use a simple smtp server (provided by your ISP for example), you can configure it like that :
* $config['cops_mail_configuration'] = [
* "smtp.host" => "smtp.free.fr",
* "smtp.username" => "",
* "smtp.password" => "",
* "smtp.secure" => "",
* "smtp.port" => "", // Not mandatory, if smtp.secure is set then defaults to 465
* "address.from" => "cops@slucas.fr",
* "subject" => "Sent by COPS : " // Not mandatory
* ];
*
* For Gmail (ssl is mandatory) :
* $config['cops_mail_configuration'] = [
* "smtp.host" => "smtp.gmail.com",
* "smtp.username" => "YOUR GMAIL ADRESS",
* "smtp.password" => "YOUR GMAIL PASSWORD",
* "smtp.secure" => "ssl",
* "address.from" => "cops@slucas.fr"
* ];
*
* For GMX (tls and 587 is mandatory) :
* $config['cops_mail_configuration'] = [
* "smtp.host" => "mail.gmx.com",
* "smtp.username" => "YOUR GMX ADRESS",
* "smtp.password" => "YOUR GMX PASSWORD",
* "smtp.secure" => "tls",
* "smtp.port" => "587",
* "address.from" => "cops@slucas.fr"
* ];
*/
$config['cops_mail_configuration'] = [
"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';
/*
* Set front controller to remove index.php/ from route URLs generated in COPS
*
* Note: this assumes your web server config will rewrite /... to /index.php/...
* - Apache: .htaccess
* - Nginx: nginx.conf
* - PHP built-in: router.php
* - ...
*/
//$config['cops_front_controller'] = '';
$config['cops_front_controller'] = 'index.php';