diff --git a/deploy/Caddyfile b/deploy/Caddyfile index f1c09fb..8e96e82 100644 --- a/deploy/Caddyfile +++ b/deploy/Caddyfile @@ -32,6 +32,13 @@ header Cache-Control "no-cache" file_server } + # Immutable monthly repository views. They are separate ZFS mounts inside the + # published root, so they cannot live under the generation symlink `current`. + handle_path /archipelago/arch-repo-snapshot/* { + root * /srv/artifacts/arch-repo-snapshot + header Cache-Control "no-cache" + file_server + } handle /archipelago/releases.json { root * /srv/artifacts/current rewrite * /releases.json