mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-08 20:15:03 +10:00
8aabf71f798ebb3332528e6a015b8eedc0a95809
When an HTML page references static files (images, CSS, JS) via
relative URLs, the browser resolves them as root-level paths
(e.g. /image.jpg from page /site-name). Without a trailing slash
on the page URL, these resolve to /image.jpg instead of
/site-name/image.jpg.
The API's /site-content/{path} handler interprets the first path
segment as the site name, so /dule_yuan_15k.jpg was treated as a
site name lookup rather than a file within the dule-yuan site.
Added _find_static_file() fallback: when no site matches the first
path segment, search all site directories for a matching filename.
Only triggered for common static file extensions to avoid
ambiguous lookups.
Home docker
Containers my home media server set up
Fix home-server running out of disk
# Remove dangling images
sudo k3s crictl rmi --prune
# Clean stopped containers
sudo k3s crictl rm $(sudo k3s crictl ps -a -q --state exited)
Languages
Python
30.9%
Shell
27.2%
HCL
21.5%
HTML
19%
Dockerfile
1.3%
Other
0.1%