|
1 | 1 | <?php
|
2 |
| -# See https://www.mediawiki.org/wiki/Manual:Configuration_settings |
| 2 | +ini_set( 'display_errors', 1 ); |
| 3 | +ini_set( 'display_startup_errors', 1 ); |
| 4 | +ini_set( 'log_errors', 'On' ); |
| 5 | +ini_set( 'error_log', '/dev/stderr' ); |
| 6 | + |
| 7 | +error_reporting( -1 ); |
| 8 | +# https://www.mediawiki.org/wiki/Manual:Configuration_settings |
3 | 9 |
|
4 | 10 | # Protect against web entry
|
5 | 11 | if ( !defined( 'MEDIAWIKI' ) ) {
|
6 | 12 | exit;
|
7 | 13 | }
|
8 | 14 |
|
| 15 | +$wgMWLoggerDefaultSpi = [ |
| 16 | + 'class' => '\\MediaWiki\\Logger\\MonologSpi', |
| 17 | + 'args' => [ [ |
| 18 | + 'loggers' => [ |
| 19 | + '@default' => [ |
| 20 | + 'processors' => [ 'wiki', 'psr' ], |
| 21 | + 'handlers' => [ 'loki' ] |
| 22 | + ], |
| 23 | + 'rdbms' => [], |
| 24 | + 'objectcache' => [], |
| 25 | + 'SQLBagOStuff' => [] |
| 26 | + ], |
| 27 | + 'processors' => [ |
| 28 | + 'wiki' => [ 'class' => '\\MediaWiki\\Logger\\Monolog\\WikiProcessor' ], |
| 29 | + 'psr' => [ 'class' => '\\Monolog\\Processor\\PsrLogMessageProcessor' ], |
| 30 | + ], |
| 31 | + 'handlers' => [ |
| 32 | + 'loki' => [ |
| 33 | + 'class' => \Itspire\MonologLoki\Handler\LokiHandler::class, |
| 34 | + 'args' => [ [ |
| 35 | + 'entrypoint' => 'http://loki:3100', |
| 36 | + 'context' => [], |
| 37 | + 'labels' => [ |
| 38 | + 'app' => 'nv-wiki' |
| 39 | + ], |
| 40 | + 'client_name' => 'nv-wiki', |
| 41 | + ] ], |
| 42 | + 'formatter' => 'lokif' |
| 43 | + ], |
| 44 | + ], |
| 45 | + 'formatters' => [ |
| 46 | + 'lokif' => [ 'class' => \Itspire\MonologLoki\Formatter\LokiFormatter::class ] |
| 47 | + ] |
| 48 | + ] ] |
| 49 | +]; |
| 50 | + |
| 51 | +## Uncomment this to disable output compression |
| 52 | +# $wgDisableOutputCompression = true; |
| 53 | + |
9 | 54 | $wgSitename = "Night Vision Wiki";
|
10 | 55 | $wgMetaNamespace = "Project";
|
11 | 56 |
|
|
17 | 62 | $wgScriptPath = "";
|
18 | 63 |
|
19 | 64 | ## The protocol and server name to use in fully-qualified URLs
|
20 |
| -# $wgServer = "http://192.168.0.159:8082"; |
| 65 | +# $wgServer = "http://192.168.0.159:8080"; |
21 | 66 | $wgServer = "https://nv-intl.com";
|
22 | 67 |
|
23 | 68 | ## The URL path to static resources (images, scripts, etc.)
|
|
0 commit comments