From 1d62653871de76a9ec1d13b32f0438ced63028f1 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sat, 18 Apr 2026 16:00:56 -0700 Subject: [PATCH] Fix forge.eblu.me static assets by adding missing Host header The static asset cache block (css/js/png/etc) was missing proxy_set_header Host, so Caddy received "forge.eblu.me" instead of "forge.ops.eblu.me" and couldn't route the request. HTML loaded fine because the main location / block had the header. Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/changelog.d/+fix-forge-static-assets.bugfix.md | 1 + fly/nginx.conf | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 docs/changelog.d/+fix-forge-static-assets.bugfix.md diff --git a/docs/changelog.d/+fix-forge-static-assets.bugfix.md b/docs/changelog.d/+fix-forge-static-assets.bugfix.md new file mode 100644 index 0000000..de0517e --- /dev/null +++ b/docs/changelog.d/+fix-forge-static-assets.bugfix.md @@ -0,0 +1 @@ +Fixed forge.eblu.me static assets (CSS, JS, images, fonts) not loading — the proxy's static asset cache block was missing the `Host` header, so Caddy couldn't route the requests. diff --git a/fly/nginx.conf b/fly/nginx.conf index ceafbdd..5e49d88 100644 --- a/fly/nginx.conf +++ b/fly/nginx.conf @@ -252,6 +252,11 @@ http { proxy_http_version 1.1; proxy_set_header Connection $connection_upgrade; + proxy_set_header Host forge.ops.eblu.me; + proxy_set_header X-Real-IP $http_fly_client_ip; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_cache services; proxy_cache_valid 200 7d; proxy_cache_key $host$uri;