forked from NanoSoup/Mimir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-config.php
More file actions
37 lines (27 loc) · 986 Bytes
/
wp-config.php
File metadata and controls
37 lines (27 loc) · 986 Bytes
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
<?php
use Symfony\Component\Debug\Debug;
use Symfony\Component\Dotenv\Dotenv;
require __DIR__ . '/vendor/autoload.php';
/**
* If we are in DEBUG mode, enable symfony debug component
*/
if (filter_var(getenv('WP_DEBUG'), FILTER_VALIDATE_BOOLEAN) === true) {
Debug::enable();
}
$env = new Dotenv();
$env->load(__DIR__ . '/.env');
foreach (explode(',', $_ENV['SYMFONY_DOTENV_VARS']) as $env_var) {
define($env_var, filter_var($_ENV[$env_var], FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) ?? $_ENV[$env_var]);
}
define('AS3CF_SETTINGS', serialize(array(
'provider' => 'aws',
'access-key-id' => getenv('S3_AWS_ID'),
'secret-access-key' => getenv('S3_AWS_SECRET'),
)));
$table_prefix = 'wp_';
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if (!defined('ABSPATH'))
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');