Caddyfile: serve the repository views that live outside the generation symlink
This commit is contained in:
parent
1a654434b3
commit
04fbaee731
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue