limit path scope

This commit is contained in:
JMARyA 2024-04-16 16:26:18 +02:00
parent 2cc0bfbb09
commit ef14646507
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 30 additions and 15 deletions

View file

@ -14,4 +14,7 @@ cache_dir = "./data"
ttl = "180"
# Regex for paths which will never be served from cache
no_cache = '.*(?:db|db\.sig)$'
no_cache = '.*(?:db|db\.sig)$'
# Redirect only paths matching this regex to the mirrors, return 404 otherwise
only_allow = '^\/archlinux'