Configure Strato ~/Karatewiki deployment, dynamic wgServer fix, and update docs
Deploy Development / deploy (push) Successful in 7s
Deploy Development / deploy (push) Successful in 7s
This commit is contained in:
1 parent
5fd1387d36
commit
86b9bbdb78
5 files changed
+98
-20
No files matched your search
@@ -35,7 +35,17 @@ $wgLanguageCode = 'de';
|
||||
|
||||
$wgScriptPath = '';
|
||||
$wgScriptExtension = '.php';
|
||||
$wgServer = getenv( 'MW_SERVER' ) ?: ( $wgServer ?? 'https://www.gojukai-dojo.de' );
|
||||
if ( getenv( 'MW_SERVER' ) ) {
|
||||
$wgServer = getenv( 'MW_SERVER' );
|
||||
} elseif ( empty( $wgServer ) ) {
|
||||
if ( !empty( $_SERVER['HTTP_HOST'] ) ) {
|
||||
$isHttps = ( !empty( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] !== 'off' )
|
||||
|| ( ( $_SERVER['HTTP_X_FORWARDED_PROTO'] ?? '' ) === 'https' );
|
||||
$wgServer = ( $isHttps ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'];
|
||||
} else {
|
||||
$wgServer = 'https://www.gojukai-dojo.de';
|
||||
}
|
||||
}
|
||||
|
||||
$wgStylePath = "$wgScriptPath/skins";
|
||||
$wgResourceBasePath = $wgScriptPath;
|
||||
|
||||
Reference in new issue
Block a user