Docker-based self-hosted WordPress deployment system with: - Four-container stack (nginx, wordpress/php-fpm, mariadb, certbot) - Automatic SSL via Let's Encrypt with self-signed fallback - First-boot WordPress setup via WP-CLI (GeneratePress + child theme, plugins) - Interactive setup wizard and one-line install script - Backup, update, healthcheck, and SSL renewal scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
788 B
PHP
27 lines
788 B
PHP
<?php
|
|
/**
|
|
* WebsiteBox WordPress Configuration (Extra Settings)
|
|
*
|
|
* This file is included by the auto-generated wp-config.php from the official
|
|
* WordPress Docker image. It must NOT redefine DB constants, $table_prefix,
|
|
* auth keys/salts, or call wp-settings.php — those are all handled by the
|
|
* parent wp-config.php.
|
|
*/
|
|
|
|
// Security hardening
|
|
define('DISALLOW_FILE_EDIT', true);
|
|
define('FORCE_SSL_ADMIN', true);
|
|
define('WP_POST_REVISIONS', 10);
|
|
define('WP_AUTO_UPDATE_CORE', 'minor');
|
|
|
|
// Debug settings (disabled in production)
|
|
define('WP_DEBUG', false);
|
|
define('WP_DEBUG_LOG', false);
|
|
define('WP_DEBUG_DISPLAY', false);
|
|
|
|
// WordPress URLs
|
|
if (getenv('DOMAIN')) {
|
|
define('WP_HOME', 'https://' . getenv('DOMAIN'));
|
|
define('WP_SITEURL', 'https://' . getenv('DOMAIN'));
|
|
}
|