bert: Serve home.chandlerswift.com/newspapers

This commit is contained in:
Chandler Swift 2025-07-04 16:13:34 -05:00
parent a1cd3c02c5
commit 8f24ff4e36
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -11,9 +11,20 @@
body <<EOF body <<EOF
User-agent: * User-agent: *
Disallow: /sheets/ Disallow: /sheets/
Disallow: /newspapers/
EOF EOF
} }
file_server /newspapers/* {
browse ${./caddy-browse-template.html}
# TOOD: is there a better way to strip the prefix here? This shouldn't be
# vulnerable to a directory traversal attack (and it doesn't really
# matter anyway; everything in there is public somewhere or another!) but
# it sorta feels wrong to do this without a `/sheets` suffix.
root /mnt/bigbird_public
}
file_server /sheets/* { file_server /sheets/* {
browse ${./caddy-browse-template.html} browse ${./caddy-browse-template.html}