/public/wp-config.php

https://github.com/willnorris/willnorris.com-wordpress · PHP · 101 lines · 41 code · 18 blank · 42 comment · 9 complexity · 2f45f25800efe9a426f5af357810e97b MD5 · raw file

  1. <?php
  2. /**
  3. * The base configurations of the WordPress.
  4. *
  5. * This file has the following configurations: MySQL settings, Table Prefix,
  6. * Secret Keys, WordPress Language, and ABSPATH. You can find more information
  7. * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
  8. * wp-config.php} Codex page. You can get the MySQL settings from your web host.
  9. *
  10. * This file is used by the wp-config.php creation script during the
  11. * installation. You don't have to use the web site, you can just copy this file
  12. * to "wp-config.php" and fill in the values.
  13. *
  14. * @package WordPress
  15. */
  16. if ( file_exists( dirname( dirname(__FILE__) ) . '/wp-local-config.php') ) {
  17. require_once( dirname( dirname(__FILE__) ) . '/wp-local-config.php' );
  18. } else {
  19. echo 'Unable to find local WordPress configuration file.';
  20. die;
  21. }
  22. // setup local paths
  23. if ( defined('WP_HOME') ) {
  24. define('WP_SITEURL', WP_HOME . '/wordpress');
  25. define('WP_CONTENT_DIR', dirname(__FILE__) . '/content');
  26. define('WP_CONTENT_URL', WP_HOME . '/content');
  27. define('PLUGINDIR', '../content/plugins');
  28. }
  29. // turn on host verification for OpenID
  30. define('Auth_OpenID_VERIFY_HOST', true);
  31. // use custom CA cert bundle if defined
  32. if (getenv('CURL_CA_BUNDLE')) {
  33. define('Auth_OpenID_CAINFO', getenv('CURL_CA_BUNDLE'));
  34. }
  35. // Google+ ID
  36. define('GOOGLE_PLUS_ID', '+willnorris');
  37. // Google Analytics ID
  38. define('GOOGLE_ANALYTICS_ID', 'UA-620101-2');
  39. // Creative Commons License
  40. define('CC_LICENSE', 'http://creativecommons.org/licenses/by-nc-sa/4.0/');
  41. // WP fail2ban
  42. define('WP_FAIL2BAN_BLOCKED_USERS','^admin$');
  43. define('WP_FAIL2BAN_BLOCK_USER_ENUMERATION',true);
  44. // Custom domain for shortlinks
  45. if ( !defined('HUM_SHORTLINK_BASE') ) {
  46. define('HUM_SHORTLINK_BASE', 'https://wjn.me');
  47. }
  48. // turn off post revisions
  49. if ( !defined('WP_POST_REVISIONS') ) {
  50. define('WP_POST_REVISIONS', false);
  51. }
  52. // disable file editing
  53. define( 'DISALLOW_FILE_EDIT', true);
  54. define( 'DISALLOW_FILE_MODS', true);
  55. /**
  56. * WordPress Localized Language, defaults to English.
  57. *
  58. * Change this to localize WordPress. A corresponding MO file for the chosen
  59. * language must be installed to wp-content/languages. For example, install
  60. * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
  61. * language support.
  62. */
  63. define('WPLANG', '');
  64. /**
  65. * For developers: WordPress debugging mode.
  66. *
  67. * Change this to true to enable the display of notices during development.
  68. * It is strongly recommended that plugin and theme developers use WP_DEBUG
  69. * in their development environments.
  70. */
  71. if ( !defined('WP_DEBUG') ) {
  72. define('WP_DEBUG', false);
  73. }
  74. if ( !defined('WP_LOCAL_DEV') ) {
  75. define('WP_LOCAL_DEV', false);
  76. }
  77. /* That's all, stop editing! Happy blogging. */
  78. /** Absolute path to the WordPress directory. */
  79. if ( !defined('ABSPATH') ) {
  80. define('ABSPATH', dirname(__FILE__) . '/wordpress/');
  81. }
  82. /** Sets up WordPress vars and included files. */
  83. require_once(ABSPATH . 'wp-settings.php');