-
Notifications
You must be signed in to change notification settings - Fork 34
/
config.sample.php
29 lines (25 loc) · 1.31 KB
/
config.sample.php
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
<?php
// Define the root of the project directory so that the vendor and messages directories
// can be accessed with non-relative paths.
define( 'ROOTDIR', '/data/project/pageviews' );
// Whatever your localhost (or production) base path is set to.
// On local, the following should work if you start the server with
// `php -S localhost:8000` within the public_html directory.
// On Cloud Services, this should be 'https://pageviews.toolforge.org'
define( 'BASE_PATH', 'http://localhost:8000' );
// Replica database credentials.
define( 'DB_HOST', '127.0.0.1' ); // On Cloud Services this should be '*.web.db.svc.wikimedia.cloud'
define( 'DB_USER', 'username' );
define( 'DB_PASSWORD', 'password' );
define( 'DB_PORT', 3306 );
define( 'DB_S7_HOST', '127.0.0.1' ); // On Cloud Services, use 'meta_p.web.db.svc.wikimedia.cloud'
define( 'DB_S7_PORT', 3306 );
// Database credentials for the 'meta' database, where usage stats are stored
// along with Topviews false positives. If you don't care about this,
// just leave these blank, but Topviews may not work correctly.
// On Cloud Services, use 'tools.db.svc.wikimedia.cloud' as the host.
define( 'META_DB_HOST', '127.0.0.1' );
define( 'META_DB_USER', 'username' );
define( 'META_DB_PASSWORD', 'password' );
define( 'META_DB_PORT', 3006 );
define( 'META_DB_NAME', 'database_name' );