Fix forge.eblu.me static assets by adding missing Host header
All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 1m26s
All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 1m26s
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) <noreply@anthropic.com>
This commit is contained in:
parent
55abb17f50
commit
1d62653871
2 changed files with 6 additions and 0 deletions
1
docs/changelog.d/+fix-forge-static-assets.bugfix.md
Normal file
1
docs/changelog.d/+fix-forge-static-assets.bugfix.md
Normal file
|
|
@ -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.
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue