1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/archwiki/templates/LocalSettings.php.j2
2019-11-05 07:48:26 +01:00

60 lines
2.3 KiB
Django/Jinja

<?php
# This file was automatically generated by the MediaWiki 1.19.0
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Database settings
$wgDBname = "{{ archwiki_db }}";
$wgDBuser = "{{ archwiki_db_user }}";
$wgDBpassword = "{{ vault_archwiki_db_password }}";
$wgSecretKey = "{{ vault_archwiki_wg_secret_key }}";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "{{ vault_archwiki_wg_upgrade_key }}";
$wgCaptchaQuestions = [
'What is the output of "pacman -V|base32|head -1"' => trim(file_get_contents("{{ archwiki_question_answer_file }}"))
];
$wgSMTP = array(
'host' => "localhost", // could also be an IP address. Where the SMTP server is located
'IDHost' => "wiki.archlinux.org", // Generally this will be the domain name of your website (aka mywiki.org)
'port' => 25, // Port to use when connecting to the SMTP server
'auth' => false, // Should we use SMTP authentication (true or false)
#'username' => "my_user_name", // Username to use for SMTP authentication (if being used)
#'password' => "my_password" // Password to use for SMTP authentication (if being used)
);
$wgBounceHandlerInternalIPs = ["{{hostvars['orion.archlinux.org']['ipv4_address']}}", "{{hostvars['orion.archlinux.org']['ipv6_address']}}"];
# End of automatically generated settings.
# Add more configuration in the file included below.
require( "LocalSettings.archlinux.org.php" );
$wgVERPprefix = "wikibounce";
$wgDebugLogFile = "/dev/null";
$wgDebugLogGroups = array(
'BounceHandler' => '/var/log/archwiki/bouncehandler.log',
);
# memcached settings
$wgMainCacheType = CACHE_MEMCACHED;
$wgParserCacheType = CACHE_MEMCACHED;
$wgMessageCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = [ "unix://{{ archwiki_memcached_socket }}:0" ];