bert: Add home.chandlerswift.com/sheets

This commit is contained in:
Chandler Swift 2024-11-12 01:51:58 -06:00
parent 5271fe9965
commit 542b9dd68d
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -6,6 +6,16 @@
root * /srv/www/home.chandlerswift.com root * /srv/www/home.chandlerswift.com
reverse_proxy /grafana/* localhost:3000 reverse_proxy /grafana/* localhost:3000
# hide .git # ??? # hide .git # ???
file_server /sheets/* {
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
}
''; '';
systemd.tmpfiles.settings."10-home-chandlerswift-com" = { systemd.tmpfiles.settings."10-home-chandlerswift-com" = {
"/srv/www/home.chandlerswift.com" = { "/srv/www/home.chandlerswift.com" = {