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>
24 lines
563 B
Plaintext
24 lines
563 B
Plaintext
# HTTP server block — used during SSL bootstrap and for ACME challenges
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
# ACME challenge for Let's Encrypt
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
# Nginx healthcheck endpoint
|
|
location /nginx-health {
|
|
access_log off;
|
|
return 200 "healthy\n";
|
|
add_header Content-Type text/plain;
|
|
}
|
|
|
|
# Before SSL is acquired, serve a placeholder
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
try_files /setup-pending.html =404;
|
|
}
|
|
}
|