Skip to main content

max / makenotwork

Fix rustdoc path resolution and Caddy uri prefix syntax generate-rustdoc.sh: ACTIVE_DIR was resolving to repo root instead of the parent active/ directory where library crates live. Caddyfile: Caddy 2.6.2 doesn't support 'uri prefix' — use 'rewrite' instead for the CDN bucket path prepend. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author: Max J. <87768334+MaxJMath@users.noreply.github.com> · 2026-03-23 01:36 UTC
Commit: aa2ff97654e607a41bfcde4b4895dcde07f9a3a1
Parent: ef0109b
2 files changed, +2 insertions, -2 deletions
@@ -99,7 +99,7 @@ cdn.makenot.work {
99 99
100 100 # Prepend bucket name to URI path and proxy to Hetzner Object Storage.
101 101 # Replace BUCKET_NAME with the actual S3 bucket name.
102 - uri prefix /BUCKET_NAME
102 + rewrite * /BUCKET_NAME{uri}
103 103 reverse_proxy https://fsn1.your-objectstorage.com {
104 104 header_up Host fsn1.your-objectstorage.com
105 105 }
@@ -11,7 +11,7 @@ if [ ! -f "Cargo.toml" ]; then
11 11 fi
12 12
13 13 OUT_DIR="$(cd ../.. && pwd)/rustdoc-out"
14 - ACTIVE_DIR="$(cd ../.. && pwd)/active"
14 + ACTIVE_DIR="$(cd ../../.. && pwd)"
15 15
16 16 CRATES=("synckit-client" "docengine" "tagtree")
17 17