mirrord/README.md
2024-04-16 16:26:18 +02:00

21 lines
No EOL
477 B
Markdown

# 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:
```toml
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
```