fix(caddy): serve launcher from sibling mount, not nested under /srv/www

Mounting ./mirror/launcher at /srv/www/launcher failed: /srv/www is a
read-only mount, so the nested mountpoint can't be created. Mount it at
/srv/launcher and route /launcher/* via handle_path instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 05:04:59 +02:00
parent eede0102c6
commit 78e92a65be
2 changed files with 12 additions and 3 deletions

View File

@@ -7,8 +7,17 @@
}
http://{$BASE_DOMAIN} {
root * /srv/www
file_server
# Launcher downloads live in a sibling mount (not nested under /srv/www,
# which is a read-only mount → can't create a nested mountpoint).
# handle_path strips the /launcher prefix before serving /srv/launcher.
handle_path /launcher/* {
root * /srv/launcher
file_server browse
}
handle {
root * /srv/www
file_server
}
}
http://auth.{$BASE_DOMAIN} {

View File

@@ -42,7 +42,7 @@ services:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- ./www:/srv/www:ro
- ./pack:/srv/pack:ro
- ./mirror/launcher:/srv/www/launcher:ro
- ./mirror/launcher:/srv/launcher:ro
- ./mirror/upstream:/srv/mirror:ro # byte-exact upstream mirror (see 11)
networks:
mcnet: