Commit 9c68538d by Ali Arshad

Update wp-config.php

parent 47ae6718
<?php <?php
/** /**
* The base configuration for WordPress * The base configuration for WordPress
* *
* The wp-config.php creation script uses this file during the * The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can * installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values. * copy this file to "wp-config.php" and fill in the values.
* *
* This file contains the following configurations: * This file contains the following configurations:
* *
* * MySQL settings * * MySQL settings
* * Secret keys * * Secret keys
* * Database table prefix * * Database table prefix
* * ABSPATH * * ABSPATH
* *
* @link https://codex.wordpress.org/Editing_wp-config.php * @link https://codex.wordpress.org/Editing_wp-config.php
* *
* @package WordPress * @package WordPress
*/ */
if($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */ $_SERVER['HTTPS'] = 'on';
define('DB_NAME', getenv('MYSQL_DATABASE')); $_SERVER['SERVER_PORT'] = 443;
}
/** MySQL database username */
define('DB_USER', getenv('MYSQL_USER'));
// ** MySQL settings - You can get this info from your web host ** //
/** MySQL database password */ /** The name of the database for WordPress */
define('DB_PASSWORD', getenv('MYSQL_PASSWORD')); define('DB_NAME', getenv('MYSQL_DATABASE'));
/** MySQL hostname */ /** MySQL database username */
define('DB_HOST', getenv('MYSQL_HOST')); define('DB_USER', getenv('MYSQL_USER'));
/** Database Charset to use in creating database tables. */ /** MySQL database password */
define('DB_CHARSET', 'utf8'); define('DB_PASSWORD', getenv('MYSQL_PASSWORD'));
/** The Database Collate type. Don't change this if in doubt. */ /** MySQL hostname */
define('DB_COLLATE', ''); define('DB_HOST', getenv('MYSQL_HOST'));
/**#@+ /** Database Charset to use in creating database tables. */
* Authentication Unique Keys and Salts. define('DB_CHARSET', 'utf8');
*
* Change these to different unique phrases! /** The Database Collate type. Don't change this if in doubt. */
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} define('DB_COLLATE', '');
* 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 * Authentication Unique Keys and Salts.
*/ *
define('AUTH_KEY', 'put your unique phrase here'); * Change these to different unique phrases!
define('SECURE_AUTH_KEY', 'put your unique phrase here'); * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
define('LOGGED_IN_KEY', 'put your unique phrase here'); * 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.
define('NONCE_KEY', 'put your unique phrase here'); *
define('AUTH_SALT', 'put your unique phrase here'); * @since 2.6.0
define('SECURE_AUTH_SALT', 'put your unique phrase here'); */
define('LOGGED_IN_SALT', 'put your unique phrase here'); define('AUTH_KEY', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
/**#@-*/ define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
/** define('SECURE_AUTH_SALT', 'put your unique phrase here');
* WordPress Database Table prefix. define('LOGGED_IN_SALT', 'put your unique phrase here');
* define('NONCE_SALT', 'put your unique phrase here');
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please! /**#@-*/
*/
$table_prefix = 'wp_'; /**
* WordPress Database Table prefix.
/** *
* For developers: WordPress debugging mode. * You can have multiple installations in one database if you give each
* * a unique prefix. Only numbers, letters, and underscores please!
* Change this to true to enable the display of notices during development. */
* It is strongly recommended that plugin and theme developers use WP_DEBUG $table_prefix = 'wp_';
* in their development environments.
* /**
* For information on other constants that can be used for debugging, * For developers: WordPress debugging mode.
* visit the Codex. *
* * Change this to true to enable the display of notices during development.
* @link https://codex.wordpress.org/Debugging_in_WordPress * It is strongly recommended that plugin and theme developers use WP_DEBUG
*/ * in their development environments.
define('WP_DEBUG', false); *
* For information on other constants that can be used for debugging,
/* That's all, stop editing! Happy blogging. */ * visit the Codex.
*
/** Absolute path to the WordPress directory. */ * @link https://codex.wordpress.org/Debugging_in_WordPress
if ( !defined('ABSPATH') ) */
define('ABSPATH', dirname(__FILE__) . '/'); define('WP_DEBUG', false);
/** Sets up WordPress vars and included files. */ /* That's all, stop editing! Happy blogging. */
require_once(ABSPATH . 'wp-settings.php');
/** 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');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment