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

@@ -7,7 +7,7 @@
"contactEmail": "contact@ente.io", "contactEmail": "contact@ente.io",
"website": "https://ente.io", "website": "https://ente.io",
"tagline": "Open source, end-to-end encrypted photo backup", "tagline": "Open source, end-to-end encrypted photo backup",
"version": "0.3.2", "version": "0.3.3",
"upstreamVersion": "git-main", "upstreamVersion": "git-main",
"healthCheckPath": "/health", "healthCheckPath": "/health",
"httpPort": 3080, "httpPort": 3080,

View File

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