1
0
Fork 0

Install logo and MediaWiki config

This commit is contained in:
Alex Kotov 2020-01-21 07:20:56 +05:00
parent 96a2428f33
commit 71f9b167b0
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 175 additions and 0 deletions

BIN
files/wiki.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -15,3 +15,30 @@ common__certbot__cert_domains:
- 'wiki.crypto-libertarian.com'
common__nginx__remove_default: true
crypto_libertarian_wiki_db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
61353633616236343037356462633562383239643235393132653939636238363930336364343262
3965393933353362303633306535353733633539623166380a366637636235643435626331626430
37363366396130363539366635643735326565396563626135366663353061343130393234306338
3562653962313634660a313935373538616263373563316336623334386363636566613433613034
63656662326638306461623063376135383233323138636138396561383539633438
crypto_libertarian_wiki_secret_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
64363433623334313135376231663734376361383039386666653963633963383839653937343833
3334376666643366366564663736653833396364643963380a653962656439663830363963396536
33396132316663366330306339336564333630643366616363613061623638303234353065336238
3135373535373163380a633465636461633964623038323864383237306536316431363438393531
63386630373330666137346236373638343938303164373365323938393930623666643833333937
64323366353633633132376664313764386164333565323531623864663633313438303439373233
65326266653162623062363939386138396664636239646532613663666362373261353761633232
32383331643666626236
crypto_libertarian_wiki_upgrade_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
34623731303030663635653530363365366366626661393462343831633938323738636630663561
3734303331623863353634356531663362643735613565370a353962356563633663353065383032
65303930663266623736636137336637663133646438353734393337353932326633336630633637
3638663762366661610a333239323561373933346364323739373163353265663466353865326165
62303761633139653434643135643263643735623039343135666561306233353461

View file

@ -72,6 +72,20 @@
extra_opts:
- --transform
- s/^mediawiki-1.34.0\//wiki\//
- name: Install logo
copy:
src: ../files/wiki.jpg
dest: /var/www/html/wiki/resources/assets/wiki.jpg
owner: www-data
group: www-data
mode: 'u=rw,g=r,o=r'
- name: Install MediaWiki config
template:
src: ../templates/LocalSettings.php
dest: /var/www/html/wiki/LocalSettings.php
owner: www-data
group: www-data
mode: 'u=rw,g=r,o='
- name: Restart Apache
systemd:
name: apache2

134
templates/LocalSettings.php Normal file
View file

@ -0,0 +1,134 @@
<?php
# This file was automatically generated by the MediaWiki 1.34.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:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "Crypto-Libertarian";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://wiki.crypto-libertarian.com";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.jpg";
## UPO means: this is also a user preference option
$wgEnableEmail = false;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@🌻.invalid";
$wgPasswordSender = "apache@🌻.invalid";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "postgres";
$wgDBssl = true;
$wgDBserver = "private-db-postgresql-ams3-67143-do-user-4455684-0.db.ondigitalocean.com";
$wgDBport = "25060";
$wgDBuser = "crypto_libertarian_wiki";
$wgDBpassword = "{{ crypto_libertarian_wiki_db_password }}";
$wgDBname = "crypto_libertarian_wiki";
$wgDBmwschema = "public";
## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = false;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = true;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "C.UTF-8";
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publicly accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/data/Names.php
$wgLanguageCode = "ru";
$wgSecretKey = "{{ crypto_libertarian_wiki_secret_key }}";
# Changing this will log out all existing sessions.
$wgAuthenticationTokenVersion = "1";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "{{ crypto_libertarian_wiki_upgrade_key }}";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://creativecommons.org/licenses/by/4.0/";
$wgRightsText = "Creative Commons Attribution";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtensions('ExtensionName');
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'WikiEditor' );
# End of automatically generated settings.
# Add more configuration options below.