bert: Serve home.chandlerswift.com/newspapers
This commit is contained in:
parent
a1cd3c02c5
commit
8f24ff4e36
1 changed files with 11 additions and 0 deletions
|
|
@ -11,9 +11,20 @@
|
|||
body <<EOF
|
||||
User-agent: *
|
||||
Disallow: /sheets/
|
||||
Disallow: /newspapers/
|
||||
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/* {
|
||||
browse ${./caddy-browse-template.html}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue