mirrord/sample.conf
2024-09-17 15:35:36 +02:00

26 lines
632 B
Text

# Mirrors to fetch from
mirrors = [
"https://mirror.leaseweb.net",
"https://geo.mirror.pkgbuild.com",
"https://mirror.leaseweb.net",
"https://archlinux.thaller.ws"
]
# Local cache directory
cache_dir = "./data"
# Time in minutes before a file is counted as out of date
ttl = "180"
# Regex for paths which will never be served from cache
no_cache = '.*(?:db|db\.sig)$'
# Redirect only paths matching this regex to the mirrors, return 404 otherwise
only_allow = '^\/archlinux'
# Show an index page on root path /
# Options:
# - `no` // disable index page
# - `<path>` // custom index page html file
index = "no"