PageRenderTime 37ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/lab_2/roles/wordpress/templates/wp-config.php.j2

https://gitlab.com/Nouteil/geekbrains_scm
Jinja | 104 lines | 89 code | 15 blank | 0 comment | 0 complexity | 05cfb9518084584136f0445cbde0716b MD5 | raw file
  1. <?php
  2. /**
  3. * The base configuration for WordPress
  4. *
  5. * The wp-config.php creation script uses this file during the
  6. * installation. You don't have to use the web site, you can
  7. * copy this file to "wp-config.php" and fill in the values.
  8. *
  9. * This file contains the following configurations:
  10. *
  11. * * MySQL settings
  12. * * Secret keys
  13. * * Database table prefix
  14. * * ABSPATH
  15. *
  16. * @link https://codex.wordpress.org/Editing_wp-config.php
  17. *
  18. * @package WordPress
  19. */
  20. // ** MySQL settings - You can get this info from your web host ** //
  21. /** The name of the database for WordPress */
  22. define( 'DB_NAME', '{{ mysql_db }}' );
  23. /** MySQL database username */
  24. define( 'DB_USER', '{{ mysql_user }}' );
  25. /** MySQL database password */
  26. define( 'DB_PASSWORD', '{{ mysql_password }}' );
  27. /** MySQL hostname */
  28. define( 'DB_HOST', 'localhost' );
  29. /** Database Charset to use in creating database tables. */
  30. define( 'DB_CHARSET', 'utf8' );
  31. /** The Database Collate type. Don't change this if in doubt. */
  32. define( 'DB_COLLATE', '' );
  33. /** Filesystem access **/
  34. define('FS_METHOD', 'direct');
  35. /**#@+
  36. * Authentication Unique Keys and Salts.
  37. *
  38. * Change these to different unique phrases!
  39. * You can generate these using the {@link
  40. https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  41. * You can change these at any point in time to invalidate all existing cookies.
  42. This will force all users to have to log in again.
  43. *
  44. * @since 2.6.0
  45. */
  46. define( 'AUTH_KEY', '{{ lookup('password', '/dev/null
  47. chars=ascii_letters length=64') }}' );
  48. define( 'SECURE_AUTH_KEY', '{{ lookup('password', '/dev/null
  49. chars=ascii_letters length=64') }}' );
  50. define( 'LOGGED_IN_KEY', '{{ lookup('password', '/dev/null
  51. chars=ascii_letters length=64') }}' );
  52. define( 'NONCE_KEY', '{{ lookup('password', '/dev/null
  53. chars=ascii_letters length=64') }}' );
  54. define( 'AUTH_SALT', '{{ lookup('password', '/dev/null
  55. chars=ascii_letters length=64') }}' );
  56. define( 'SECURE_AUTH_SALT', '{{ lookup('password', '/dev/null
  57. chars=ascii_letters length=64') }}' );
  58. define( 'LOGGED_IN_SALT', '{{ lookup('password', '/dev/null
  59. chars=ascii_letters length=64') }}' );
  60. define( 'NONCE_SALT', '{{ lookup('password', '/dev/null
  61. chars=ascii_letters length=64') }}' );
  62. /**#@-*/
  63. /**
  64. * WordPress Database Table prefix.
  65. *
  66. * You can have multiple installations in one database if you give each
  67. * a unique prefix. Only numbers, letters, and underscores please!
  68. */
  69. $table_prefix = 'wp_';
  70. /**
  71. * For developers: WordPress debugging mode.
  72. *
  73. * Change this to true to enable the display of notices during development.
  74. * It is strongly recommended that plugin and theme developers use WP_DEBUG
  75. * in their development environments.
  76. *
  77. * For information on other constants that can be used for debugging,
  78. * visit the Codex.
  79. *
  80. * @link https://codex.wordpress.org/Debugging_in_WordPress
  81. */
  82. define( 'WP_DEBUG', false );
  83. /* That's all, stop editing! Happy publishing. */
  84. /** Absolute path to the WordPress directory. */
  85. if ( ! defined( 'ABSPATH' ) ) {
  86. define( 'ABSPATH', dirname( __FILE__ ) . '/' );
  87. }
  88. /** Sets up WordPress vars and included files. */
  89. require_once( ABSPATH . 'wp-settings.php' );