wp-config.php.template 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. // ** MySQL settings ** //
  3. /** The name of the database for WordPress */
  4. define('DB_NAME', '##MYSQL_DATABASE');
  5. /** MySQL database username */
  6. define('DB_USER', '##MYSQL_USERNAME');
  7. /** MySQL database password */
  8. define('DB_PASSWORD', '##MYSQL_PASSWORD');
  9. /** MySQL hostname */
  10. define('DB_HOST', '##MYSQL_HOST');
  11. /** Database Charset to use in creating database tables. */
  12. define('DB_CHARSET', 'utf8');
  13. /** The Database Collate type. Don't change this if in doubt. */
  14. define('DB_COLLATE', '');
  15. define('AUTH_KEY', '##AUTH_KEY');
  16. define('SECURE_AUTH_KEY', '##SECURE_AUTH_KEY');
  17. define('LOGGED_IN_KEY', '##LOGGED_IN_KEY');
  18. define('NONCE_KEY', '##NONCE_KEY');
  19. define('AUTH_SALT', '##AUTH_SALT');
  20. define('SECURE_AUTH_SALT', '##SECURE_AUTH_SALT');
  21. define('LOGGED_IN_SALT', '##LOGGED_IN_SALT');
  22. define('NONCE_SALT', '##NONCE_SALT');
  23. $table_prefix = '##TABLE_PREFIX';
  24. // prevent user from changing the Settings->General, WordPress and Blog address values.
  25. define('WP_HOME', '##APP_ORIGIN');
  26. define('WP_SITEURL', '##APP_ORIGIN');
  27. define('WP_CONTENT_URL', '##APP_ORIGIN/wp-content');
  28. define('WP_PLUGIN_URL', '##APP_ORIGIN/wp-content/plugins');
  29. define('WP_CONTENT_DIR', '/app/data/wp-content');
  30. define('WP_PLUGIN_DIR', '/app/data/wp-content/plugins');
  31. // disable built-in page load based cron (https://developer.wordpress.org/plugins/cron/)
  32. define('DISABLE_WP_CRON', true);
  33. // Enable WP_DEBUG mode
  34. define('WP_DEBUG', false);
  35. // Enable Debug logging to the /wp-content/debug.log file
  36. define('WP_DEBUG_LOG', false);
  37. /*
  38. http://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/
  39. http://wordpress.org/support/topic/compatibility-with-wordpress-behind-a-reverse-proxy
  40. https://wordpress.org/support/topic/wp_home-and-wp_siteurl
  41. */
  42. // If WordPress is behind reverse proxy which proxies https to http
  43. if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  44. $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
  45. $_SERVER['SERVER_PORT'] = '443'; // pretend apache is running on port 443. plugins like rsvp use this
  46. if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
  47. $_SERVER['HTTPS']='on';
  48. }
  49. /* That's all, stop editing! Happy blogging. */
  50. /** Absolute path to the WordPress directory. */
  51. if ( !defined('ABSPATH') )
  52. define('ABSPATH', dirname(__FILE__) . '/');
  53. /** Sets up WordPress vars and included files. */
  54. require_once(ABSPATH . 'wp-settings.php');