FU r100535:
[lhc/web/wiklou.git] / thumb.config.sample
1 <?php
2 /**
3 * @cond file_level_code
4 * This is not a valid entry point, perform no further processing unless THUMB_HANDLER is defined
5 */
6 if ( !defined( 'THUMB_HANDLER' ) ) {
7 echo "This file is part of MediaWiki and is not a valid entry point\n";
8 die( 1 );
9 }
10
11 /**
12 * Sample configuration file for thumb-handler.php.
13 * In order to use thumb-handler.php:
14 * 1) Copy this file to thumb.config.php and modify the settings.
15 * 2) The webserver must be setup to have thumb-handler.php as a 404 handler.
16 * This can be done in apache by editing .htaccess in the /thumb directory by adding:
17 * ErrorDocument 404 /path/to/thumb_handler.php
18 */
19
20 $thgThumbUrlMatch = array(
21 # URL name of the server (e.g. "upload.wikipedia.org").
22 'server' => 'http://localhost',
23 # URL fragment to the thumb/ directory
24 'dirFragment' => 'MW_trunk/images/thumb',
25 # URL regex fragment correspond to the directory hashing of thumbnails.
26 # This must correspond to $wgLocalFileRepo['hashLevels'].
27 'hashFragment' => '[0-9a-f]/[0-9a-f][0-9a-f]/' // 2-level directory hashing
28 );
29
30 $thgThumbCurlConfig = array(
31 # Optionally cURL to thumb.php instead of using it directly
32 'enabled' => false,
33 # The URL to thumb.php, accessible from the web server.
34 'url' => 'http://localhost/MW_trunk/thumb.php',
35 # Optional proxy server to use to access thumb.php
36 'proxy' => null,
37 # Timeout to use for cURL request to thumb.php.
38 # Leave it long enough to generate a ulimit timeout in ordinary
39 # cases, but short enough to avoid a local PHP timeout.
40 'timeout' => 53
41 );
42
43 # Custom functions for overriding aspects of thumb handling
44 $thgThumbCallbacks = array();