/[adm]/puppet/modules/mediawiki/templates/LocalSettings.php
ViewVC logotype

Contents of /puppet/modules/mediawiki/templates/LocalSettings.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1762 - (show annotations) (download)
Fri Jun 17 12:21:06 2011 UTC (12 years, 10 months ago) by misc
File size: 4386 byte(s)
fix licensing of the wiki, following romain comment on ml
1 <?php
2
3 # This file was created by puppet, so any change will be overwritten
4
5 # See includes/DefaultSettings.php for all configurable settings
6 # and their default values, but don't forget to make changes in _this_
7 # file, not there.
8 #
9 # Further documentation for configuration settings may be found at:
10 # http://www.mediawiki.org/wiki/Manual:Configuration_settings
11
12 $IP = '/usr/share/mediawiki';
13 if (! isset($DIR)) $DIR = getcwd();
14
15 $path = array( $IP, "$IP/includes", "$IP/languages" );
16 set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
17
18 require_once( "$IP/includes/DefaultSettings.php" );
19
20 if ( $wgCommandLineMode ) {
21 if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
22 die( "This script must be run from the command line\n" );
23 }
24 }
25 ## Uncomment this to disable output compression
26 # $wgDisableOutputCompression = true;
27
28 $wgSitename = "<%= title %>";
29
30 ## The URL base path to the directory containing the wiki;
31 ## defaults for all runtime URL paths are based off of this.
32 ## For more information on customizing the URLs please see:
33 ## http://www.mediawiki.org/wiki/Manual:Short_URL
34 $wgScriptPath = "/<%= path %>";
35 $wgScriptExtension = ".php";
36
37 ## The relative URL path to the skins directory
38 $wgStylePath = "$wgScriptPath/skins";
39
40 ## The relative URL path to the logo. Make sure you change this from the default,
41 ## or else you'll overwrite your logo when you upgrade!
42 $wgLogo = "$wgStylePath/common/images/wiki.png";
43
44 ## UPO means: this is also a user preference option
45
46 $wgEnableEmail = true;
47 $wgEnableUserEmail = true; # UPO
48
49 $wgEmergencyContact = "root@<%= domain %>";
50 $wgPasswordSender = "root@<%= domain %>";
51
52 $wgEnotifUserTalk = true; # UPO
53 $wgEnotifWatchlist = true; # UPO
54 $wgEmailAuthentication = true;
55
56 ## Database settings
57 $wgDBtype = "postgres";
58 $wgDBserver = "pgsql.<%= domain %>";
59 $wgDBname = "<%= db_name %>";
60 $wgDBuser = "<%= db_user %>";
61 $wgDBpassword = "<%= db_password %>";
62
63 # Postgres specific settings
64 $wgDBport = "5432";
65 $wgDBmwschema = "mediawiki";
66 $wgDBts2schema = "public";
67
68 ## Shared memory settings
69 $wgMainCacheType = CACHE_NONE;
70 $wgMemCachedServers = array();
71
72 ## To enable image uploads, make sure the 'images' directory
73 ## is writable, then set this to true:
74 $wgEnableUploads = false;
75 $wgUseImageMagick = true;
76 $wgImageMagickConvertCommand = "/usr/bin/convert";
77
78 ## If you use ImageMagick (or any other shell command) on a
79 ## Linux server, this will need to be set to the name of an
80 ## available UTF-8 locale
81 $wgShellLocale = "en_US.UTF-8";
82
83 ## If you want to use image uploads under safe mode,
84 ## create the directories images/archive, images/thumb and
85 ## images/temp, and make them all writable. Then uncomment
86 ## this, if it's not already uncommented:
87 # $wgHashedUploadDirectory = false;
88
89 ## If you have the appropriate support software installed
90 ## you can enable inline LaTeX equations:
91 $wgUseTeX = false;
92
93 ## Set $wgCacheDirectory to a writable directory on the web server
94 ## to make your wiki go slightly faster. The directory should not
95 ## be publically accessible from the web.
96 #$wgCacheDirectory = "$IP/cache";
97
98 $wgLocalInterwiki = strtolower( $wgSitename );
99
100 $wgLanguageCode = "<%= lang %>";
101
102 $wgSecretKey = "<%= secret_key %>";
103
104 ## Default skin: you can change the default skin. Use the internal symbolic
105 ## names, ie 'vector', 'monobook':
106 $wgDefaultSkin = 'monobook';
107
108 ## For attaching licensing metadata to pages, and displaying an
109 ## appropriate copyright notice / icon. GNU Free Documentation
110 ## License and Creative Commons licenses are supported so far.
111 $wgEnableCreativeCommonsRdf = true;
112 # TODO add a proper page
113 $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
114 $wgRightsUrl = "http://creativecommons.org/licenses/by-sa/3.0/";
115 $wgRightsText = "Creative Common - Attibution - ShareAlike 3.0";
116 # TODO get the icon to host it on our server
117 $wgRightsIcon = "http://i.creativecommons.org/l/by-sa/3.0/88x31.png";
118 # $wgRightsCode = "gfdl1_3"; # Not yet used
119
120 $wgDiff3 = "/usr/bin/diff3";
121
122 # When you make changes to this configuration file, this will make
123 # sure that cached pages are cleared.
124 $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
125
126

  ViewVC Help
Powered by ViewVC 1.1.30