Terminating automatic HTTPS certificates on a dedicated Caddy gateway while preserving true client IPs and clean 301 headers on upstream Nginx servers. [TLS Edge: Node 103 Caddy Auto-TLS 1.3 · Client IP Restore: set_real_ip_from 192.168.10.103 · Clean 301 Header: absolute_redirect off]
Single Public IP Hosting: Caddy Auto-TLS + Upstream Nginx Real-IP Architecture
Terminating automatic HTTPS certificates on a dedicated Caddy gateway while preserving true client IPs and clean 301 headers on upstream Nginx servers.
Centralizing TLS 1.3 / HTTP/3 termination on one Caddy gateway eliminates scattered certbot cronjobs across internal VMs while simplifying multi-domain routing.
Without ngx_http_realip_module configured to trust the Caddy proxy IP, Nginx sees every external request as LAN traffic—breaking IP allowlists. Enabling real_ip_header X-Forwarded-For restores accurate WAN 403 blocking.
Because upstream Nginx listens on port 80 behind HTTPS Caddy, setting absolute_redirect off ensures 301 redirects emit clean relative paths (e.g., Location: /episodes/) without leaking http:// schemes.
Deploying this workflow across KKOKK+W (makerskorean.net) proved that the most reliable engineering discipline is 'record baseline -> adjust one variable at a time -> run automated smoke verification'. Changing multiple parameters simultaneously obscures root causes. Use the benchmark matrix below as your starting reference, tune incrementally for your specific hardware, and re-verify latency, memory footprint, and 0.00 CLS stability after every change.
Measured Key Metrics & Benchmark Matrix
| Parameter / Audit Item | Measured Spec / Value | Operational Impact & Notes |
|---|---|---|
| TLS Edge | Node 103 Caddy Auto-TLS 1.3 | Zero manual cert renewals |
| Client IP Restore | set_real_ip_from 192.168.10.103 | Accurate WAN 403 ACL enforcement |
| Clean 301 Header | absolute_redirect off | Preserves HTTPS scheme cleanly |
| Proxy Overhead | < 0.4ms over 1GbE LAN | Negligible latency impact |
Frequently Asked Technical Questions (FAQ)
Yes—follow Section 4 by capturing a quick config backup or snapshot first and applying changes one parameter at a time.
Yes, every table and technical note is embedded in our 5-language bundle for instant switching on desktop and mobile.