wp-config.php.template 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 = 'wp_';
  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. /*
  32. http://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/
  33. http://wordpress.org/support/topic/compatibility-with-wordpress-behind-a-reverse-proxy
  34. https://wordpress.org/support/topic/wp_home-and-wp_siteurl
  35. */
  36. // If WordPress is behind reverse proxy which proxies https to http
  37. if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  38. $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
  39. if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
  40. $_SERVER['HTTPS']='on';
  41. }
  42. /* That's all, stop editing! Happy blogging. */
  43. /** Absolute path to the WordPress directory. */
  44. if ( !defined('ABSPATH') )
  45. define('ABSPATH', dirname(__FILE__) . '/');
  46. /** Sets up WordPress vars and included files. */
  47. require_once(ABSPATH . 'wp-settings.php');