mirrord/sample.conf

27 lines
632 B
Text
Raw Normal View History

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