Add Caddy handler for static image assets

This commit is contained in:
2025-10-21 22:04:39 -06:00
parent aaee86823e
commit f20a55768b
2 changed files with 6 additions and 1 deletions

View File

@@ -496,6 +496,11 @@ cat > "$CADDY_CONFIG" <<EOF_CADDY
file_server
}
handle /images/* {
root * $WEB_RUNTIME_DIR/photos
file_server
}
handle /auth/* {
root * $WEB_RUNTIME_DIR
try_files {path} {path}/index.html /auth/index.html