try this, after speaking to Kode

This commit is contained in:
sparklyballs 2016-08-12 11:50:32 +01:00
parent bff489c710
commit cb10049696
2 changed files with 16 additions and 19 deletions

View File

@ -11,16 +11,13 @@ RUN \
php5-dom \
php5-gd \
php5-intl \
php5-openssl \
php5-pdo_sqlite \
tar
RUN \
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing \
mini-sendmail
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /books
EXPOSE 80 443
VOLUME /config /books

View File

@ -1,21 +1,21 @@
<?php
if (!isset($config))
$config = array();
/*
* 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/';
$config['calibre_internal_directory'] = '/books/';
$config['calibre_internal_directory'] = '/books/';
/*
* Catalog's title
*/
$config['cops_title_default'] = "COPS";
/*
* use URL rewriting for downloading of ebook in HTML catalog
* See README for more information
@ -30,20 +30,20 @@
* 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";
/*
* use URL rewriting for downloading of ebook in HTML catalog
* See README for more information
* 1 : enable
* 0 : disable
*/
$config['cops_mail_configuration'] = array( "smtp.host" => "",
"smtp.username" => "",
"smtp.password" => "",
"smtp.secure" => "ssl",
"address.from" => "COPS"
);
"smtp.username" => "",
"smtp.password" => "",
"smtp.secure" => "ssl",
"address.from" => "COPS"
);