Skip to content

Instantly share code, notes, and snippets.

@pkosciak
Last active November 27, 2023 08:51
Show Gist options
  • Select an option

  • Save pkosciak/0dc94f6e5d1d5add8de504bfc810ceb5 to your computer and use it in GitHub Desktop.

Select an option

Save pkosciak/0dc94f6e5d1d5add8de504bfc810ceb5 to your computer and use it in GitHub Desktop.
WordPress configuration
<?php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('SCRIPT_DEBUG', true);
define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
@ini_set('display_errors', 0);
//@ini_set('memory_limit', -1);
/** Docker redirection loop fix */
define('FORCE_SSL_ADMIN', true);
if(!defined('WP_CLI'))
{
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
{
$_SERVER['HTTPS'] = 'on';
}
}
<?php
if(file_exists(__DIR__ . '/wp-config-dev.php'))
{
include_once __DIR__ . '/wp-config-dev.php';
}
//define('WP_REDIS_HOST', '');
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASSWORD', '');
define('DB_HOST', '');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
$table_prefix = 'wp_';
define('WP_AUTO_UPDATE_CORE', false);
define('DISALLOW_FILE_EDIT', true);
/**#@+
* 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.
*/
define('AUTH_KEY', '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');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
if (!defined( 'ABSPATH'))
{
define('ABSPATH', __DIR__ . '/');
}
require_once ABSPATH . 'wp-settings.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment