Followup r99354, adding release notes entry
[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 # URL name of the server (e.g. "upload.wikipedia.org").
21 $thgThumbServer = "http://localhost";
22 # URL fragment after the server name to the thumb directory
23 $thgThumbFragment = "MW_trunk/images/thumb";
24 # URL regex fragment correspond to the directory hashing of thumbnails.
25 # This must correspond to $wgLocalFileRepo['hashLevels'].
26 $thgThumbHashFragment = '[0-9a-f]/[0-9a-f][0-9a-f]/'; // 2-level directory hashing
27
28 # The URL to thumb.php, accessible from the web server.
29 $thgThumbScriptPath = "http://localhost/MW_trunk/thumb.php";
30
31 # Timeout to use for cURL request to thumb.php.
32 # Leave it long enough to generate a ulimit timeout in ordinary
33 # cases, but short enough to avoid a local PHP timeout.
34 $thgThumbCurlTimeout = 53;
35 # Optional proxy server to use to access thumb.php
36 $thgThumbCurlProxy = null; // proxy to thumb.php
37
38 # File path to a php file the gives a 404 error message
39 $thgThumb404File = null;
40
41 # Custom functions for overriding aspects of thumb handling
42 $thgThumbCallbacks = array();