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:
@@ -7,9 +7,18 @@
|
||||
}
|
||||
|
||||
http://{$BASE_DOMAIN} {
|
||||
# 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} {
|
||||
reverse_proxy drasl:25585
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user