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>
2 files changed,
+2 insertions,
-2 deletions
| 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 |
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 |
|
|