add cache configuration

This commit is contained in:
sparklyballs 2016-08-29 18:19:12 +01:00
parent 6e689fb3e8
commit 14b2fbe000
2 changed files with 9 additions and 1 deletions

View File

@ -33,7 +33,10 @@
*/
$config['cops_x_accel_redirect'] = "X-Accel-Redirect";
/* Enable cache folder
* especially useful for lower power hosts
*/
$config['cops_thumbnail_cache_directory'] = "/cache";
/*
* Enable and configure Send To Kindle (or Email) feature.
*

View File

@ -1,5 +1,9 @@
#!/usr/bin/with-contenv bash
# create folders
mkdir -p \
/cache
# make symlink
[[ ! -e /var/www/localhost/cops ]] && \
ln -s /usr/share/webapps/cops /var/www/localhost/cops
@ -11,6 +15,7 @@ cp /config/config_local.php /var/www/localhost/cops/
# permissions
chown -R abc:abc \
/cache \
/config \
/usr/share/webapps/cops \
var/www/localhost/cops