server { listen 80; server_name blog.p2pfoundation.net localhost; # Default index file index _index_ssl.html index.html; # Serve WordPress core includes (CSS, JS, images) location /wp-includes/ { alias /usr/share/nginx/html/blog.p2pfoundation.net/public_html/wp-includes/; expires 30d; add_header Cache-Control "public, immutable"; } # Serve wp-content assets (themes, uploads, minified CSS/JS) location /wp-content/ { alias /usr/share/nginx/html/blog.p2pfoundation.net/public_html/wp-content/; expires 30d; add_header Cache-Control "public, immutable"; } # Health check endpoint location /health { return 200 'OK'; add_header Content-Type text/plain; } # Main location - serve cached pages location / { root /usr/share/nginx/html/blog.p2pfoundation.net/public_html/wp-content/cache/page_enhanced/blog.p2pfoundation.net; try_files $uri/_index_ssl.html $uri/ $uri =404; } # Error pages error_page 404 /404.html; location = /404.html { internal; return 404 '404 - Page Not Found

Page Not Found

The requested blog post could not be found.

Return to homepage

'; add_header Content-Type text/html; } # Inject Umami analytics (rData) into all HTML pages sub_filter '' ''; sub_filter_once on; sub_filter_types text/html; # Gzip compression gzip on; gzip_types text/plain text/html text/css application/javascript application/json; gzip_min_length 1000; }