M6: serve and export modes, packaging

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
lucioandClaude Opus 5.5 committed 2026-11-04 04:58:48 -08:00
1 parent 45105d292f
commit 00ee2a6d12
29 files changed
+1294 -75

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
photos.luciochen.com {
root * /var/lib/luphoto/site/current
@hotlink {
path /t/*
header Referer *
not header_regexp Referer ^https?://photos\.luciochen\.com(:[0-9]+)?(/|$)
}
respond @hotlink 403
@hidden path */.* *.gz
respond @hidden 404
@immutable path /t/* /og/* /assets/*
header @immutable Cache-Control "public, max-age=31536000, immutable"
@short not path /t/* /og/* /assets/*
header @short Cache-Control "public, max-age=60"
header {
Content-Security-Policy "default-src 'self'; img-src 'self' blob: data:; font-src 'self'; worker-src 'self'; frame-ancestors 'none'"
X-Content-Type-Options nosniff
Referrer-Policy strict-origin-when-cross-origin
-Server
}
@methods not method GET HEAD
respond @methods 405
file_server {
precompressed gzip
}
}