Initial commit: complete WebsiteBox project
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>
This commit is contained in:
23
nginx/wordpress.conf
Normal file
23
nginx/wordpress.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user