1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

update config file

This commit is contained in:
ericgaspar 2022-08-22 08:20:04 +02:00
parent 51a884dcbb
commit 7b2129e03f
2 changed files with 50 additions and 49 deletions

View file

@ -2,71 +2,70 @@
/** /**
* The base configuration for WordPress * The base configuration for WordPress
* *
* The wp-config.php creation script uses this file during the * The wp-config.php creation script uses this file during the installation.
* installation. You don't have to use the web site, you can * You don't have to use the web site, you can copy this file to "wp-config.php"
* copy this file to "wp-config.php" and fill in the values. * and fill in the values.
* *
* This file contains the following configurations: * This file contains the following configurations:
* *
* * MySQL settings * * Database settings
* * Secret keys * * Secret keys
* * Database table prefix * * Database table prefix
* * ABSPATH * * ABSPATH
* *
* @link https://codex.wordpress.org/Editing_wp-config.php * @link https://wordpress.org/support/article/editing-wp-config-php/
* *
* @package WordPress * @package WordPress
*/ */
/** Disable the wordress cron because it's managed by the system */ // ** Database settings - You can get this info from your web host ** //
define('DISABLE_WP_CRON', true);
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */ /** The name of the database for WordPress */
define('DB_NAME', '__DB_NAME__'); define( 'DB_NAME', '__DB_NAME__' );
/** MySQL database username */ /** Database username */
define('DB_USER', '__DB_USER__'); define( 'DB_USER', '__DB_USER__' );
/** MySQL database password */ /** Database password */
define('DB_PASSWORD', '__DB_PWD__'); define( 'DB_PASSWORD', '__DB_PWD__' );
/** MySQL hostname */ /** Database hostname */
define('DB_HOST', 'localhost'); define( 'DB_HOST', 'localhost' );
/** Database Charset to use in creating database tables. */ /** Database charset to use in creating database tables. */
define('DB_CHARSET', 'utf8'); define( 'DB_CHARSET', 'utf8' );
/** The Database Collate type. Don't change this if in doubt. */ /** The database collate type. Don't change this if in doubt. */
define('DB_COLLATE', ''); define( 'DB_COLLATE', '' );
/**#@+ /**#@+
* Authentication Unique Keys and Salts. * Authentication unique keys and salts.
* *
* Change these to different unique phrases! * Change these to different unique phrases! You can generate these using
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. *
* You can change these at any point in time to invalidate all existing cookies.
* This will force all users to have to log in again.
* *
* @since 2.6.0 * @since 2.6.0
*/ */
define('AUTH_KEY', 'KEY1'); define( 'AUTH_KEY', 'put your unique phrase here' );
define('SECURE_AUTH_KEY', 'KEY2'); define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define('LOGGED_IN_KEY', 'KEY3'); define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define('NONCE_KEY', 'KEY4'); define( 'NONCE_KEY', 'put your unique phrase here' );
define('AUTH_SALT', 'KEY5'); define( 'AUTH_SALT', 'put your unique phrase here' );
define('SECURE_AUTH_SALT', 'KEY6'); define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define('LOGGED_IN_SALT', 'KEY7'); define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define('NONCE_SALT', 'KEY8'); define( 'NONCE_SALT', 'put your unique phrase here' );
/**#@-*/ /**#@-*/
/** /**
* WordPress Database Table prefix. * WordPress database table prefix.
* *
* You can have multiple installations in one database if you give each * You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please! * a unique prefix. Only numbers, letters, and underscores please!
*/ */
$table_prefix = 'wp_'; $table_prefix = 'wp_';
/** /**
* For developers: WordPress debugging mode. * For developers: WordPress debugging mode.
@ -76,20 +75,22 @@ $table_prefix = 'wp_';
* in their development environments. * in their development environments.
* *
* For information on other constants that can be used for debugging, * For information on other constants that can be used for debugging,
* visit the Codex. * visit the documentation.
* *
* @link https://codex.wordpress.org/Debugging_in_WordPress * @link https://wordpress.org/support/article/debugging-in-wordpress/
*/ */
define('WP_DEBUG', false); define( 'WP_DEBUG', false );
/* That's all, stop editing! Happy blogging. */ /* Add any custom values between this line and the "stop editing" line. */
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */ /** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') ) if ( ! defined( 'ABSPATH' ) ) {
define('ABSPATH', dirname(__FILE__) . '/'); define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */ /** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php'); require_once ABSPATH . 'wp-settings.php';
// Force https redirect
//--PUBLIC--define('FORCE_SSL_ADMIN', true);

View file

@ -127,7 +127,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
ynh_script_progression --message="Configuring WordPress..." --weight=1 ynh_script_progression --message="Configuring WordPress..." --weight=1
# Change variables in Wordpress configuration # Change variables in Wordpress configuration
file=__FILE__ dir=__DIR__
ynh_add_config --template="../conf/wp-config.php" --destination="$final_path/wp-config.php" ynh_add_config --template="../conf/wp-config.php" --destination="$final_path/wp-config.php"
for i in 1 2 3 4 5 6 7 8 for i in 1 2 3 4 5 6 7 8