forked from seblucas/cops
-
Notifications
You must be signed in to change notification settings - Fork 7
/
local.php.example
80 lines (70 loc) · 2.57 KB
/
local.php.example
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
<?php
if (!isset($config)) {
$config = [];
}
/*
***************************************************
* Please read config/default.php for all possible
* configuration items
* For changes in config/default.php see CHANGELOG.md
***************************************************
*/
/*
* 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'] = './';
/*
* Catalog's title
*/
$config['cops_title_default'] = "COPS";
/*
* use URL rewriting for downloading of ebook in HTML catalog
* See README for more information
* 1 : enable
* 0 : disable
* @deprecated 3.1.0 use route urls instead (= always enabled in 3.4+)
*/
$config['cops_use_url_rewriting'] = "0";
/*
* 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'] = 'index.php';
*/
$config['cops_front_controller'] = '';
/*
* Specify the ignored formats that will never display in COPS
* This will also stop downloading them, unless the files are under the web directory
*/
$config['cops_ignored_formats'] = ['ORIGINAL_EPUB', 'ORIGINAL_AZW3'];
/*
* Show links to sort by title, author, pubdate, rating or timestamp in OPDS catalog (using facets)
* Note: this will only work if your e-reader supports facets in OPDS feeds, like Thorium Reader for example
* See https://specs.opds.io/opds-1.2.html#4-facets for specification details
* To disable this feature, use an empty array in config/local.php:
* $config['cops_opds_sort_links'] = [];
*
* Available values: ['title', 'author', 'pubdate', 'rating', 'timestamp']
*/
$config['cops_opds_sort_links'] = ['title', 'author', 'pubdate', 'rating', 'timestamp'];
/*
* Show links to filter by Author, Language, Publisher, Rating, Serie or Tag in OPDS catalog (using facets)
* Note: this will only work if your e-reader supports facets in OPDS feeds, like Thorium Reader for example
* See https://specs.opds.io/opds-1.2.html#4-facets for specification details
* To disable this feature, use an empty array in config/local.php:
* $config['cops_opds_filter_links'] = [];
*
* Available values: ['author', 'language', 'publisher', 'rating', 'series', 'tag']
*/
$config['cops_opds_filter_links'] = ['author', 'language', 'rating', 'tag'];
/*
* Number of filter links to show per category in OPDS catalog
*/
$config['cops_opds_filter_limit'] = '8';