cops/config_default.php

52 lines
1.5 KiB
PHP
Raw Normal View History

2012-05-28 08:01:33 +03:00
<?php
/**
* COPS (Calibre OPDS PHP Server) class file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author S<EFBFBD>bastien Lucas <sebastien@slucas.fr>
*/
2012-05-28 08:06:12 +03:00
if (!isset($config))
$config = array();
2012-05-28 08:01:33 +03:00
/*
* The directory containing calibre's metadata.db file, with sub-directories
* containing all the formats.
* If this directory starts with a / EPUB download will only work with Nginx
2012-05-28 08:06:12 +03:00
* and the calibre_internal_directory has to be set properly
* BEWARE : it has to end with a /
2012-05-28 08:01:33 +03:00
*/
$config['calibre_directory'] = './';
/*
* The internal directory set in nginx config file
2012-05-28 08:05:05 +03:00
* or the same directory as calibre_directory with X-Sendfile
2012-05-28 08:01:33 +03:00
*/
$config['calibre_internal_directory'] = '/Calibre/';
/*
2012-05-28 08:06:12 +03:00
* Full URL prefix (with trailing /)
* usefull especially for Opensearch where a full URL is sometimes required
* For example Mantano requires it.
*/
$config['cops_full_url'] = '';
/*
* Number of recent books to show
2012-05-28 08:01:33 +03:00
*/
$config['cops_recentbooks_limit'] = '50';
/*
* The internal directory set in nginx config file
*/
$config['cops_title_default'] = "Sebastien's COPS";
2012-05-28 08:05:05 +03:00
/*
* Wich 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)
*/
2012-05-28 08:06:12 +03:00
$config['cops_x_accel_redirect'] = "X-Accel-Redirect";
2012-05-28 08:01:33 +03:00
?>