Commit 9217a488 authored by Fabio Montefuscolo's avatar Fabio Montefuscolo

fix files

parent 02739a97
......@@ -4,17 +4,17 @@ keygen() {
cat /dev/urandom | tr -dc '[:print:]' | tr "\\\\" "-" | tr "'" "-" | head -c64;
}
export WORDPRESS_AUTH_KEY="${WORDPRESS_AUTH_KEY:-$(keygen)}"
export WORDPRESS_SECURE_AUTH_KEY="${WORDPRESS_SECURE_AUTH_KEY:-$(keygen)}"
export WORDPRESS_LOGGED_IN_KEY="${WORDPRESS_LOGGED_IN_KEY:-$(keygen)}"
export WORDPRESS_NONCE_KEY="${WORDPRESS_NONCE_KEY:-$(keygen)}"
export WORDPRESS_AUTH_SALT="${WORDPRESS_AUTH_SALT:-$(keygen)}"
export WORDPRESS_SECURE_AUTH_SALT="${WORDPRESS_SECURE_AUTH_SALT:-$(keygen)}"
export WORDPRESS_LOGGED_IN_SALT="${WORDPRESS_LOGGED_IN_SALT:-$(keygen)}"
export WORDPRESS_NONCE_SALT="${WORDPRESS_NONCE_SALT:-$(keygen)}"
export AUTH_KEY="${AUTH_KEY:-$(keygen)}"
export SECURE_AUTH_KEY="${SECURE_AUTH_KEY:-$(keygen)}"
export LOGGED_IN_KEY="${LOGGED_IN_KEY:-$(keygen)}"
export NONCE_KEY="${NONCE_KEY:-$(keygen)}"
export AUTH_SALT="${AUTH_SALT:-$(keygen)}"
export SECURE_AUTH_SALT="${SECURE_AUTH_SALT:-$(keygen)}"
export LOGGED_IN_SALT="${LOGGED_IN_SALT:-$(keygen)}"
export NONCE_SALT="${NONCE_SALT:-$(keygen)}"
if [ "$WORDPRESS_WP_DEBUG" != "true" ] && [ "$OPCACHE" != "false" ];
if [ "$WP_DEBUG" != "true" ] && [ "$OPCACHE" != "false" ];
then
cat > /usr/local/etc/php/conf.d/opcache-recommended.ini << EOF
opcache.memory_consumption=128
......
......@@ -6,14 +6,14 @@
define('DB_CHARSET', getenv('DB_CHARSET') ?: 'utf8');
define('DB_COLLATE', getenv('DB_COLLATE') ?: '');
define('AUTH_KEY', getenv('AUTH_KEY') ?: hash('sha256', DB_USER.DB_NAME.DB_PASSWORD.DB_HOST));
define('SECURE_AUTH_KEY', getenv('SECURE_AUTH_KEY') ?: hash('sha256', AUTH_KEY));
define('LOGGED_IN_KEY', getenv('LOGGED_IN_KEY') ?: hash('sha256', SECURE_AUTH_KEY));
define('NONCE_KEY', getenv('NONCE_KEY') ?: hash('sha256', LOGGED_IN_KEY));
define('AUTH_SALT', getenv('AUTH_SALT') ?: hash('sha256', NONCE_KEY));
define('SECURE_AUTH_SALT', getenv('SECURE_AUTH_SALT') ?: hash('sha256', AUTH_SALT));
define('LOGGED_IN_SALT', getenv('LOGGED_IN_SALT') ?: hash('sha256', SECURE_AUTH_SALT));
define('NONCE_SALT', getenv('NONCE_SALT') ?: hash('sha256', LOGGED_IN_SALT));
define('AUTH_KEY', getenv('AUTH_KEY'));
define('SECURE_AUTH_KEY', getenv('SECURE_AUTH_KEY'));
define('LOGGED_IN_KEY', getenv('LOGGED_IN_KEY'));
define('NONCE_KEY', getenv('NONCE_KEY'));
define('AUTH_SALT', getenv('AUTH_SALT'));
define('SECURE_AUTH_SALT', getenv('SECURE_AUTH_SALT'));
define('LOGGED_IN_SALT', getenv('LOGGED_IN_SALT'));
define('NONCE_SALT', getenv('NONCE_SALT'));
define('FS_METHOD', getenv('FS_METHOD') ?: 'direct');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment