summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-06-15 20:48:47 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-06-15 20:48:47 +0200
commit847b82981c3abfa3a352c66c3922c3c2cb89f023 (patch)
tree62c8fa4264dae86810a176a2932a22edaa413115 /conf
parenta6ef4796e22156364843a3b42bdd8f2dc78c0db5 (diff)
downloadrpg-847b82981c3abfa3a352c66c3922c3c2cb89f023.tar.gz
rpg-847b82981c3abfa3a352c66c3922c3c2cb89f023.tar.bz2
$conf['fetchsize'] added
This patch adds an option to configure the maximum size for files the fetch.php will ever download. Setting this to 0 completely turns of the caching of external media files. Disadvantages of setting a low or zero fetchsize: * fetch.php needs to download images to be able to resize them. When the used fetchsize prevents the downloading the images can only be resized by the browser which means the browser will need to download the fullsized image first. * If the linked external media files vanishes it will no longer display in the wiki because it is not cached. Advantages of setting a low or zero fetchsize: * fetch.php may be used for a possible denial of service attack by requesting many big external files. * The created cache files may take a lot of space on the server I recommend to leave the setting at 2MB for internal and private wikis and lower the setting to about 200 to 500 Kb for bigger public Wikis. Note: the caching of files uploaded through the media manager is not affected by this setting. darcs-hash:20060615184847-7ad00-04fc39928f7d72e56f5c5e271013ef265436e6c9.gz
Diffstat (limited to 'conf')
-rw-r--r--conf/dokuwiki.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php
index 5d8616903..e92171322 100644
--- a/conf/dokuwiki.php
+++ b/conf/dokuwiki.php
@@ -74,6 +74,7 @@ $conf['usegzip'] = 1; //gzip old revisions?
$conf['cachetime'] = 60*60*24; //maximum age for cachefile in seconds (defaults to a day)
$conf['purgeonadd'] = 1; //purge cache when a new file is added (needed for up to date links)
$conf['locktime'] = 15*60; //maximum age for lockfiles (defaults to 15 minutes)
+$conf['fetchsize'] = 2*1024*1024; //maximum size (bytes) fetch.php may download from extern
$conf['notify'] = ''; //send change info to this email (leave blank for nobody)
$conf['mailfrom'] = ''; //use this email when sending mails
$conf['gzip_output'] = 0; //use gzip content encodeing for the output xhtml (if allowed by browser)