12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- // ** MySQL settings ** //
- /** The name of the database for WordPress */
- define('DB_NAME', '##MYSQL_DATABASE');
- /** MySQL database username */
- define('DB_USER', '##MYSQL_USERNAME');
- /** MySQL database password */
- define('DB_PASSWORD', '##MYSQL_PASSWORD');
- /** MySQL hostname */
- define('DB_HOST', '##MYSQL_HOST');
- /** Database Charset to use in creating database tables. */
- define('DB_CHARSET', 'utf8');
- /** The Database Collate type. Don't change this if in doubt. */
- define('DB_COLLATE', '');
- define('AUTH_KEY', '##AUTH_KEY');
- define('SECURE_AUTH_KEY', '##SECURE_AUTH_KEY');
- define('LOGGED_IN_KEY', '##LOGGED_IN_KEY');
- define('NONCE_KEY', '##NONCE_KEY');
- define('AUTH_SALT', '##AUTH_SALT');
- define('SECURE_AUTH_SALT', '##SECURE_AUTH_SALT');
- define('LOGGED_IN_SALT', '##LOGGED_IN_SALT');
- define('NONCE_SALT', '##NONCE_SALT');
- $table_prefix = 'wp_';
- // prevent user from changing the Settings->General, WordPress and Blog address values.
- define('WP_HOME', '##APP_ORIGIN');
- define('WP_SITEURL', '##APP_ORIGIN');
- define('WP_CONTENT_URL', '##APP_ORIGIN/wp-content');
- define('WP_PLUGIN_URL', '##APP_ORIGIN/wp-content/plugins');
- define('WP_CONTENT_DIR', '/app/data/wp-content');
- define('WP_PLUGIN_DIR', '/app/data/wp-content/plugins');
- // Enable WP_DEBUG mode
- define('WP_DEBUG', false);
- // Enable Debug logging to the /wp-content/debug.log file
- define('WP_DEBUG_LOG', false);
- /*
- http://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/
- http://wordpress.org/support/topic/compatibility-with-wordpress-behind-a-reverse-proxy
- https://wordpress.org/support/topic/wp_home-and-wp_siteurl
- */
- // If WordPress is behind reverse proxy which proxies https to http
- if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
- $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
- if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
- $_SERVER['HTTPS']='on';
- }
- /* 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');
|