-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalSettings.php
More file actions
120 lines (92 loc) · 2.84 KB
/
Copy pathLocalSettings.php
File metadata and controls
120 lines (92 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
# This file was automatically generated by the MediaWiki 1.44.0
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
# Basic site configuration
$wgSitename = "echopedia";
$wgMetaNamespace = "echopedia";
# Database settings
$wgDBtype = "postgres";
$wgDBserver = $_ENV['DB_HOST'] ?? "postgres";
$wgDBname = $_ENV['DB_NAME'] ?? "mediawiki";
$wgDBuser = $_ENV['DB_USER'] ?? "mediawiki";
$wgDBpassword = $_ENV['DB_PASSWORD'] ?? "mediawikipassword";
# Database table prefix
$wgDBprefix = "";
# PostgreSQL specific settings
$wgDBport = $_ENV['DB_PORT'] ?? 5432;
# Shared database tables
$wgSharedDB = null;
$wgSharedPrefix = false;
$wgSharedTables = [];
$wgSharedSchema = false;
# Site configuration
$wgScriptPath = "";
$wgServer = $_ENV['WG_SERVER'] ?? "http://localhost:8080";
$wgResourceBasePath = $wgScriptPath;
# Logo
$wgLogos = [
'1x' => "$wgResourceBasePath/resources/assets/echo-logo.png",
'2x' => "$wgResourceBasePath/resources/assets/echo-logo.png",
'icon' => "$wgResourceBasePath/resources/assets/echo-logo.png",
];
# Language
$wgLanguageCode = "no";
# SEO Configuration
$wgMetaNamespace = "echopedia";
$wgSiteNotice = "";
$wgEmergencyContact = "webkom@echo.uib.no";
$wgPasswordSender = "ikkesvar@echo-webkom.no";
# Page titles and SEO
$wgRestrictDisplayTitle = false;
$wgAllowDisplayTitle = true;
# SEO-friendly URLs and metadata
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
$wgEnableSidebarCache = false;
# Meta tags and description
$wgEnableMetaDescriptionFunctions = true;
# Secret key
$wgSecretKey = $_ENV["WG_SECRET_KEY"] ?? "your-secret-key-here-change-this-in-production";
# Site upgrade key
$wgUpgradeKey = $_ENV["WG_UPGRADE_KEY"] ?? "your-upgrade-key-here";
# Default skin
$wgDefaultSkin = "vector-2022";
# Registration
$wgEnableCreatedAccountEmail = false;
# User rights
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = true;
# Enable uploads
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
# Files and uploads
$wgFileExtensions = array_merge( $wgFileExtensions, ['pdf', 'svg'] );
# Cache
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
# Email
$wgEnableEmail = false;
$wgEnableUserEmail = false;
# Debug
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
# Extensions
wfLoadExtension( 'MobileFrontend' );
# Load skins
wfLoadSkin( 'Vector' );
wfLoadSkin( 'MinervaNeue' );
# Enable dark mode for Vector 2022
$wgVectorDefaultSkinVersion = '2';
$wgVectorDefaultSkinVersionForExistingAccounts = '2';
# MobileFrontend configuration
$wgDefaultMobileSkin = 'minerva';
$wgMFAutodetectMobileView = true;
$wgMFMobileHeader = 'X-Subdomain';
# End of automatically generated settings.