-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-config.php
More file actions
executable file
·44 lines (35 loc) · 1.32 KB
/
wp-config.php
File metadata and controls
executable file
·44 lines (35 loc) · 1.32 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
<?php
// Database
define('DB_HOST', 'mysql');
define('DB_NAME', 'wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', '42');
define('DB_CHARSET', $_SERVER['MYSQL_CHARSET'] ?? 'utf8');
define('DB_COLLATE', $_SERVER['MYSQL_COLLATE'] ?? '');
// Table prefix
$table_prefix = 'wp_';
// Change Content Directory
$host = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
define('WP_CONTENT_DIR', __DIR__ . '/wp-content');
define('WP_CONTENT_URL', $host . '/wp-content');
define('WP_SITEURL', $host . '/wp');
// Salts, for security
// Grab these from: https://api.wordpress.org/secret-key/1.1/salt
define('AUTH_KEY', 'worpress-docker-dev');
define('SECURE_AUTH_KEY', 'worpress-docker-dev');
define('LOGGED_IN_KEY', 'worpress-docker-dev');
define('NONCE_KEY', 'worpress-docker-dev');
define('AUTH_SALT', 'worpress-docker-dev');
define('SECURE_AUTH_SALT', 'worpress-docker-dev');
define('LOGGED_IN_SALT', 'worpress-docker-dev');
define('NONCE_SALT', 'worpress-docker-dev');
// Disable all updates, since we handle this with composer
define('AUTOMATIC_UPDATER_DISABLED', true);
define('WP_AUTO_UPDATE_CORE', false);
// Direct upgrade
//define('FS_METHOD', 'direct');
// Bootstrap WordPress
if (!defined('ABSPATH')) {
define('ABSPATH', __DIR__ . '/wp/');
}
require_once(ABSPATH . 'wp-settings.php');