🪞 HTTP Mirror
Find a file
2024-07-10 09:17:09 +02:00
.gitea/workflows actions 2024-04-12 08:28:04 +02:00
src refactor 2024-07-10 09:17:09 +02:00
.gitignore no cache option 2024-04-10 10:24:56 +02:00
Cargo.lock refactor 2024-07-10 09:17:09 +02:00
Cargo.toml random mirror selection 2024-04-12 08:33:17 +02:00
docker-compose.yml actions 2024-04-12 08:28:04 +02:00
Dockerfile fix 2024-04-13 20:56:09 +02:00
README.md limit path scope 2024-04-16 16:26:18 +02:00
sample.conf limit path scope 2024-04-16 16:26:18 +02:00

mirrord

mirrord is a local http mirror. It redirects every request it gets to mirror hosts and caches the response locally.

Using with pacman

Configure mirrord to act as a pacman mirror:

mirrors = [
    "https://mirror.leaseweb.net",
    "https://archlinux.thaller.ws",
    ...
]

cache_dir = "./data"
no_cache = '.*(?:db|db\.sig)$'
only_allow = '^\/archlinux'

Add this to your mirrorlist:

Server = http://<mirrord_host>:8080/archlinux/$repo/os/$arch