File: /var/www/html/wp-config.php
<?php
define('JWT_AUTH_SECRET_KEY', '$>z0Yh<BpzpFF8dFh}uExG$a.Luvr[bz%YH>co.M&3}!Q.%?lH(rkY.$En:zKK6_');
if ( ! function_exists( 'ethnic_wp_config_env' ) ) {
function ethnic_wp_config_env( $key, $default = '' ) {
static $file_values = null;
$value = getenv( $key );
if ( false !== $value && '' !== $value ) {
return $value;
}
if ( isset( $_ENV[ $key ] ) && '' !== $_ENV[ $key ] ) {
return $_ENV[ $key ];
}
if ( isset( $_SERVER[ $key ] ) && '' !== $_SERVER[ $key ] ) {
return $_SERVER[ $key ];
}
if ( null === $file_values ) {
$file_values = array();
$env_path = dirname( __DIR__ ) . '/.env';
if ( file_exists( $env_path ) && is_readable( $env_path ) ) {
$lines = file( $env_path, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES );
if ( is_array( $lines ) ) {
foreach ( $lines as $line ) {
$line = trim( $line );
if ( '' === $line || '#' === $line[0] || false === strpos( $line, '=' ) ) {
continue;
}
list( $env_key, $env_value ) = array_map( 'trim', explode( '=', $line, 2 ) );
$file_values[ $env_key ] = trim( $env_value, "\"'" );
}
}
}
}
if ( isset( $file_values[ $key ] ) && '' !== $file_values[ $key ] ) {
return $file_values[ $key ];
}
return $default;
}
}
if ( ! function_exists( 'ethnic_wp_config_db_host' ) ) {
function ethnic_wp_config_db_host() {
$explicit_host = ethnic_wp_config_env( 'WP_DB_HOST', ethnic_wp_config_env( 'MYSQL_HOST', '' ) );
if ( '' !== $explicit_host ) {
return $explicit_host;
}
if ( 'db' !== gethostbyname( 'db' ) ) {
return 'db';
}
return '127.0.0.1:1958';
}
}
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the installation.
* You don't have to use the website, you can copy this file to "wp-config.php"
* and fill in the values.
*
* This file contains the following configurations:
*
* * Database settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
*
* @package WordPress
*/
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', ethnic_wp_config_env( 'WP_DB_NAME', ethnic_wp_config_env( 'MYSQL_DATABASE', 'wordpress' ) ) );
/** Database username */
define( 'DB_USER', ethnic_wp_config_env( 'WP_DB_USER', ethnic_wp_config_env( 'MYSQL_USER', 'wordpress' ) ) );
/** Database password */
define( 'DB_PASSWORD', ethnic_wp_config_env( 'WP_DB_PASSWORD', ethnic_wp_config_env( 'MYSQL_PASSWORD', 'gH97K66ffpcv63b' ) ) );
/** Database hostname */
define( 'DB_HOST', ethnic_wp_config_env( 'DB_HOST', ethnic_wp_config_db_host() ) );
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8mb4' );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
define('FS_METHOD', 'direct');
define('FS_CHMOD_DIR', 0755);
define('FS_CHMOD_FILE', 0644);
/**#@+
* Authentication unique keys and salts.
*
* Change these to different unique phrases! You can generate these using
* the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
*
* You can change these at any point in time to invalidate all existing cookies.
* This will force all users to have to log in again.
*
* @since 2.6.0
*/
define( 'AUTH_KEY', 'wb)Gn))N9*iKDwvw`*fS!1^0!p}]<;uL3mKOoo`jIDV XK*HWsl$}43M M0+55b@' );
define( 'SECURE_AUTH_KEY', '+:v;Jc6Su!n5LK62OrIDk/5bJ=U~%9_a9Q|_A3hnh-%xv-Tlpf9D1: /]kDXYF=N' );
define( 'LOGGED_IN_KEY', 'vpIDXp]IVlVg^`4Ik8q/UeZ].<6uuu7R047PqYb[::Z`_Q?UWoUP>/NEGCz5>@@d' );
define( 'NONCE_KEY', 'GBlsZ^t n}BP6a4AoM35T=zVt32<YT%ZwsewQTWQ>tDf<6m+6Rr>sH%]p}yl]D7w' );
define( 'AUTH_SALT', 'A~z.F![59>4iOXM9f>Ud.>Q pe(b7~.2Z69At(~eguvuYN=L]ao/Az@SAD=nunOb' );
define( 'SECURE_AUTH_SALT', 'd{trw+E[&cB2{pr<8=8% 6e;tL!wUpT:%ihdHWnooxWw535U[)4CqTo#wzxzjyHr' );
define( 'LOGGED_IN_SALT', 'cS,yk|CnP%=.+Ec`(4bTU]T`zBJ#4[h+MWmGU 0pUY<(L ;`${)lx+}1tiP7Zx8C' );
define( 'NONCE_SALT', 'sJ&Z>iye%J9Y88xU]tI<Vcy=x]8:vnjr(/l,Sj743jjYu7hdNasKZ~NJ]%29nQ:^' );
/**#@-*/
/**
* WordPress database table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*
* At the installation time, database tables are created with the specified prefix.
* Changing this value after WordPress is installed will make your site think
* it has not been installed.
*
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#table-prefix
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
*
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
*/
define( 'WP_DEBUG', false );
/* Add any custom values between this line and the "stop editing" line. */
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';