Add Caddy handler for static image assets
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
5
start.sh
5
start.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user