mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 19:57:16 +02:00
- Removed obsolete Installation.md, TODO.md, 02_debug.yml, 05_oidc.yml and legacy debug enable/disable tasks - Added 01_prep.yml to render debug.php/oidc.php on host side before container start - Introduced _ensure_require.yml for generic require_once management in LocalSettings.php - Renamed 01_install.yml -> 02_install.yml to align with new numbering - Updated docker-compose.yml.j2 to bind-mount mw-local into /opt/mw-local - Adjusted vars/main.yml to define MEDIAWIKI_LOCAL_MOUNT_DIR and MEDIAWIKI_LOCAL_PATH - Templates debug.php.j2 and oidc.php.j2 now gated by MODE_DEBUG and MEDIAWIKI_OIDC_ENABLED - main.yml now orchestrates prep, install, debug, extensions, oidc require, admin consistently Ref: https://chatgpt.com/share/68b57db2-efcc-800f-a733-aca952298437
41 lines
1.1 KiB
Django/Jinja
41 lines
1.1 KiB
Django/Jinja
<?php
|
|
/**
|
|
* File: debug.php
|
|
* Note: This file is always present via bind mount.
|
|
* Its effect is controlled by MODE_DEBUG at template-render time.
|
|
*/
|
|
if ( !defined( 'MEDIAWIKI' ) ) {
|
|
exit;
|
|
}
|
|
|
|
{% if MODE_DEBUG | bool %}
|
|
/**
|
|
* DEBUG ENABLED (MODE_DEBUG=true)
|
|
* Verbose error display & debug logs for MediaWiki and OIDC/PluggableAuth.
|
|
*/
|
|
$wgShowExceptionDetails = true;
|
|
$wgShowDBErrorBacktrace = true;
|
|
$wgShowSQLErrors = true;
|
|
$wgDevelopmentWarnings = true;
|
|
|
|
@ini_set('display_errors', '1');
|
|
@ini_set('display_startup_errors', '1');
|
|
@ini_set('log_errors', '1');
|
|
@ini_set('error_log', '/proc/self/fd/2');
|
|
|
|
$wgDebugLogGroups = array_merge($wgDebugLogGroups ?? [], [
|
|
'exception' => 'php://stderr',
|
|
'error' => 'php://stderr',
|
|
'authentication' => 'php://stderr',
|
|
'session' => 'php://stderr',
|
|
'resourceloader' => 'php://stderr',
|
|
'PluggableAuth' => 'php://stderr',
|
|
'OpenIDConnect' => 'php://stderr',
|
|
]);
|
|
{% else %}
|
|
/**
|
|
* DEBUG DISABLED (MODE_DEBUG=false)
|
|
* Intentionally a no-op. File stays present to keep require_once stable.
|
|
*/
|
|
{% endif %}
|