aboutsummaryrefslogtreecommitdiffstats
path: root/pacman
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-02 13:49:05 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-11-13 21:15:37 +0100
commit5d2a1223230f808ae3db69c6523aba3a27ee8b04 (patch)
tree8378432d3dd878e3a8b970a4109ef29f62c74685 /pacman
parentffb77b063cea42898a8d1225137a9543021d62d9 (diff)
downloadpacredir-5d2a1223230f808ae3db69c6523aba3a27ee8b04.tar.gz
pacredir-5d2a1223230f808ae3db69c6523aba3a27ee8b04.tar.zst
add a cache server entry in pacman configuration snippet
The server error limit was introduced in pacman 6.0.0, which caused some trouble with pacredir: Returning 404 (not found) is common case and no fatal error. Add a cache server with different address to make sure to request files from pacredir in case the address above was caught by pacman's server error limit.
Diffstat (limited to 'pacman')
-rw-r--r--pacman/pacredir8
1 files changed, 8 insertions, 0 deletions
diff --git a/pacman/pacredir b/pacman/pacredir
index 0a1e1fc..9df0184 100644
--- a/pacman/pacredir
+++ b/pacman/pacredir
@@ -1,2 +1,10 @@
# Make sure local service pacredir is running!
+
+# This is a regular server, so pacredir receives requests for database
+# files, but it is also accounted for server error limit.
Server = http://127.0.0.1:7077/
+
+# Add a cache server with different address to make sure pacman requests
+# package files from pacredir in case the address above was caught by
+# pacman's server error limit.
+CacheServer = http://127.0.0.2:7077/